LLDB debugging tools (such as pretty printers) for CuraEngine
Also easy Polygon viewing possible. If you have tool like 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 <directory_containing>/debug_poly.py
This is currently only tested on Linux running KDE with Clion. make sure you have numpy and
matplotlib installed.
- cura::Polygons
- cura::Temperature
- cura::Velocity
- cura::Acceleration
- cura::LayerIndex
- cura::Ratio
- cura::AngleDegrees
- cura::Point3
- cura::Point
- cura::AABB3D
- cura::ExtruderTrain
- cura::LayerPlan (partially implemented)
- cura::WallToolPaths
- cura::ExtrusionJunction
- cura::ExtrusionLine
- cura::BeadingStrategy::Beading
- cura::SkeletalTrapezoidation::graph_t
- boost::polygon::voronoi_vertex
Add the following to your ~/.ldbinit
settings set target.load-cwd-lldbinit true
Create a .ldbinit
file in the root of your CuraEngine directory containing the following:
command script import <path to your curaengine-lldb-debug repo>/curaengine.py
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/debugger
local:
- /opt/clion/bin/lldb/renderers/lldb_formatters