vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

Debugging is failing when starting #1072

Open akhodeir opened 4 months ago

akhodeir commented 4 months ago

OS: MacOS 14 VSCode version: Version: 1.86.2 (Universal) CodeLLDB version: CodeLLDB v1.10.0 Compiler: XCode/LLDB Debuggee: C compiled file Mac mini (Processor : 3.2 GHz 6-Core Intel Core i7) Python 3.10.6

When I trigger debugging, the debugging fail.

Debug console:

Console is in 'commands' mode, prefix expressions with '?'. Launching: (long text XYZ...) Launched process 1971 Process exited with code -1.

Verbose log
"commandCompletions":true,"reproducer":false},"__sessionId":"2ff31ce7-69d9-4180-b321-4fdb06f3edd5"},"type":"request","seq":2}
[DEBUG codelldb::dap_codec] <-- {"seq":2,"type":"event","event":"output","body":{"category":"console","output":"Console is in 'commands' mode, prefix expressions with '?'.\n"}}
INFO(Python) 17:17:54 formatters: Initializing
INFO(Python) 17:17:54 formatters.rust: Initializing
Traceback (most recent call last):
  File "/Users/ABC/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/formatters/__init__.py", line 9, in __lldb_init_module
    rust.__lldb_init_module(debugger_obj, internal_dict)
  File "/Users/ABC/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/formatters/rust.py", line 754, in __lldb_init_module
    initialize_category(debugger_obj, internal_dict)
  File "/Users/ABC/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/formatters/rust.py", line 86, in initialize_category
    max_string_summary_langth = debugger.GetSetting('target.max-string-summary-length').GetIntegerValue()
AttributeError: 'SBDebugger' object has no attribute 'GetSetting'
[DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"initialized"}
.
.
Later:
.
DEBUG codelldb::dap_session] Client has disconnected
[DEBUG codelldb::debug_session] End of the requests stream
[DEBUG codelldb::debug_session] DebugSession::drop()
[DEBUG codelldb] End of the debug session
[DEBUG codelldb] Exiting
Debug adapter exit code=0 (0x0), signal=null.
lbb9507 commented 4 months ago

https://github.com/vadimcn/codelldb/discussions/456#discussioncomment-874122

akhodeir commented 4 months ago

Thx for the reply.

I already tried to remove codeLLDB extension and add it again. I also tried to remove the debugserver executable but none of the previous solutions worked for me :(

is this a problem in the OS or the extension itself?