An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# curaengine-lldb-debug
LLDB debugging tools (such as pretty printers) for CuraEngine

![GitHub Logo](resources/prettyprint.jpg)

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.

![GitHub Logo](resources/show_polygons.gif)

## 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/debugger

local:
- /opt/clion/bin/lldb/renderers/lldb_formatters