These configuration will let you use CodeLLDB extension to debug Crystal programs.
Store them as .vscode/tasks.json
and .vscode/launch.json
in your project.
When starting the debugging the current file will be built in the bin/
folder (as in shards build
).
Note: You will need to set the crystal binary path in tasks.json
"command"
field and the whole path in launch.json "initCommands"
. Read more at #8538
What is the path to
crystal_formatters.py
? Is it typically part of a lldb install or a crystal install? Specifically interested in macos, but general advice will do!