https://github.com/jellespijker/curaengine-lldb-debug
LLDB debugging tools (such as pretty printers) for CuraEngine
https://github.com/jellespijker/curaengine-lldb-debug
cura curaengine lldb pretty-printer
Last synced: 7 months ago
JSON representation
LLDB debugging tools (such as pretty printers) for CuraEngine
- Host: GitHub
- URL: https://github.com/jellespijker/curaengine-lldb-debug
- Owner: jellespijker
- License: lgpl-3.0
- Created: 2020-05-25T19:04:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-17T11:49:52.000Z (over 4 years ago)
- Last Synced: 2025-01-16T06:14:50.615Z (9 months ago)
- Topics: cura, curaengine, lldb, pretty-printer
- Language: Python
- Homepage:
- Size: 924 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curaengine-lldb-debug
LLDB debugging tools (such as pretty printers) for CuraEngine
Also easy Polygon viewing possible. If you have tool like [Klipper](https://userbase.kde.org/Klipper) it is possible to
set actions for certain cut snippets that match a regex pattern.
Create the following regular expression to match against `((^.+\s=)|(\s\[.+$))` and add
an action with the output handling flag `Ignore` set, containing the following Command
`echo %s | python /debug_poly.py`
This is currently only tested on Linux running KDE with Clion. make sure you have numpy and
matplotlib installed.
## Currently implemented
- [x] cura::Polygons
- [x] cura::Temperature
- [x] cura::Velocity
- [x] cura::Acceleration
- [x] cura::LayerIndex
- [x] cura::Ratio
- [x] cura::AngleDegrees
- [x] cura::Point3
- [x] cura::Point
- [x] cura::AABB3D
- [x] cura::ExtruderTrain
- [x] cura::LayerPlan (partially implemented)
- [x] cura::WallToolPaths
- [x] cura::ExtrusionJunction
- [x] cura::ExtrusionLine
- [x] cura::BeadingStrategy::Beading
- [x] cura::SkeletalTrapezoidation::graph_t
- [x] boost::polygon::voronoi_vertex
# Instructions
Add the following to your ``~/.ldbinit``
```txt
settings set target.load-cwd-lldbinit true
```
Create a `.ldbinit` file in the root of your **CuraEngine** directory containing the following:
```text
command script import /curaengine.py
```# Usefull sources:
online:
- https://lldb.llvm.org/use/variable.html
- https://lldb.llvm.org/python_reference/index.html
- https://github.com/llvm/llvm-project/tree/master/lldb/examples
- https://github.com/fantaosha/LLDB-Eigen-Pretty-Printer/blob/master/LLDB_Eigen_Pretty_Printer.py
- https://github.com/qt-creator/qt-creator/tree/master/share/qtcreator/debuggerlocal:
- /opt/clion/bin/lldb/renderers/lldb_formatters