Debugger support

@lribeiro Yes, clone my repo (https://github.com/skuznetsov/crystal) and switch to debug branch, then compile as usual.
The generated binary with debugger support will be stored in .bin/ folder you can use that path for compiling your programs with –debug flag added.
Compiled programs should have all necessary debug information for LLDB and GDB to be able to debug your program.
Due to the LLDB bug you may see stack variables (like local primitives variables) to shown incorrect values.
If you testing LLDB in Visual Studio Code you may install CodeLLDB plugin that shows variables neatly (you can see it on my screenshots in this thread). For GDB I suspect you will have to use Native Debug plugin but I don’t really like it for LLDB.

3 Likes