I’m working to get LLDB running. Getting it to start a crystal --debug binary isn’t bad, but I can’t get it to emit formatted data types with the formatter library
After copying that to ~/.lldb/crystal_lang.py:
> lldb
(lldb) command script import ~/.lldb/crystal_lang.py
warning: The provided class does not exist - please define it before attempting to use this synthetic provider
warning: The provided function "crystal_formatters.CrystalString_SummaryProvider" does not exist - please define it before attempting to use this summary.
It’s processing the import but not able to resolve the class/function definitions. I’m sure I’m doing something subtly wrong, but I’m not sure what.
$ lldb --version
lldb-1200.0.32.1
Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
Recently the homebrew folks decided to roll out updates more aggressively, and installing one package will suddenly reinstall a landslide of packages. I’d guess this is where I got the llvm 11 keg.
The good news is crystal still builds my projects, at least so far.
/usr/local/opt/llvm/bin/lldb
(lldb) command script import ~/.lldb/crystal_lang.py
error: module importing failed: This script interpreter does not support importing modules.