daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
366 stars 41 forks source link

Add `sourceLanguages` LLDB adapter setting #268

Closed ffuugoo closed 3 weeks ago

ffuugoo commented 1 month ago

codelldb adapter supports sourceLanguages configuration setting, that "enables language-specific features" in LLDB.

E.g.: when "sourceLanguages": ["rust"] enabled, debugger starts with Rust: on panic breakpoint preconfigured (instead of C++: on throw/C++: on catch).

Screenshot 2024-06-10 at 15 40 27

The handling for the option is, pretty much, copied from codelldb. See here and here.

daveleroy commented 3 weeks ago

Thanks sorry it took awhile I was out of town for the last month.

At some point more of these adapter settings should be exposed in Debugger.sublime-preferences https://github.com/vadimcn/codelldb/blob/05502bf75e4e7878a99b0bf0a7a81bba2922cbe3/extension/novsc/adapterMessages.ts#L2