codelldb icon indicating copy to clipboard operation
codelldb copied to clipboard

Bug: didn't catch panics in Rust code

Open Banyc opened this issue 1 year ago • 7 comments

OS: macOS 12.4 VSCode version: 1.69.2 CodeLLDB version: 1.7.3 Compiler: rustc 1.62.1 (e092d0b6b 2022-07-16) Debuggee: helloworld with a panic!()

Context: https://github.com/rust-lang/rust-analyzer/issues/12907

The debugger do not catching fatal errors. The breakpoints are working well.

fn main() {
    println!("Hello, world!");
    panic!();
}
Verbose log
  

liblldb: /Users/USERNAME/.vscode/extensions/vadimcn.vscode-lldb-1.7.3/lldb/lib/liblldb.dylib environment: {} params: { evaluateForHovers: true, commandCompletions: true } [2022-07-29T06:30:09.355Z DEBUG codelldb] New debug session [2022-07-29T06:30:09.570Z DEBUG codelldb::dap_codec] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request","seq":1} [2022-07-29T06:30:09.570Z DEBUG codelldb::dap_codec] <-- {"seq":1,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"cpp_throw","label":"C++: on throw"},{"default":false,"filter":"cpp_catch","label":"C++: on catch"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsRestartFrame":true,"supportsSetVariable":true,"supportsWriteMemoryRequest":true}} [2022-07-29T06:30:09.575Z DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"run test_codelldb","program":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb/target/debug/test_codelldb","args":[],"cwd":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb","sourceMap":{},"env":{"RUST_BACKTRACE":"short","ELECTRON_RUN_AS_NODE":"1","SECURITYSESSIONID":"186a6","USER":"USERNAME","MallocNanoZone":"0","__CFBundleIdentifier":"com.microsoft.VSCode","COMMAND_MODE":"unix2003","PATH":"/usr/local/microsoft/powershell/7:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/USERNAME/.dotnet/tools:/usr/local/go/bin:/opt/puppetlabs/bin:/usr/local/share/dotnet:/usr/local/munki:~/.dotnet/tools:/Library/Apple/usr/bin","SHELL":"/bin/zsh","HOME":"/Users/USERNAME","__CF_USER_TEXT_ENCODING":"0x1F6:0x0:0x0","LaunchInstanceID":"905F624C-310D-48B3-A320-4D4453CA6B66","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.45937119.45937125.8DCF4CA4-4450-4B4B-AF6D-3ACDCE882697","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.AfWu0Q13VB/Listeners","XPC_FLAGS":"0x0","LOGNAME":"USERNAME","TMPDIR":"/var/folders/v3/7601s6ks7fbf7b9z69cfzxjc0000gp/T/","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","VSCODE_CWD":"/Users/USERNAME","VSCODE_NLS_CONFIG":"{"locale":"en-us","availableLanguages":{},"_languagePackSupport":true}","VSCODE_CODE_CACHE_PATH":"/Users/USERNAME/Library/Application Support/Code/CachedData/3b889b090b5ad5793f524b5d1d39fda662b96a2a","VSCODE_IPC_HOOK":"/Users/USERNAME/Library/Application Support/Code/1.69.2-main.sock","VSCODE_PID":"523","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","PWD":"/Users/USERNAME","ELECTRON_NO_ATTACH_CONSOLE":"1","SHLVL":"1","MallocSpaceEfficient":"1","VSCODE_CLI":"1","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true"},"relativePathBase":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb","_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":["rust"],"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"d4d04e97-5407-4350-8986-617fbda37a6c"},"type":"request","seq":2} [2022-07-29T06:30:09.576Z DEBUG codelldb::dap_codec] <-- {"seq":2,"type":"event","event":"capabilities","body":{"capabilities":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic"}]}}} [2022-07-29T06:30:09.576Z DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"output","body":{"output":"Console is in 'commands' mode, prefix expressions with '?'.\n"}} INFO(Python) 14:30:09 formatters: Initializing INFO(Python) 14:30:09 formatters.rust: Initializing [2022-07-29T06:30:09.644Z DEBUG codelldb::dap_codec] <-- {"seq":4,"type":"event","event":"initialized"} [2022-07-29T06:30:09.644Z DEBUG codelldb::debug_session] Debug event: 0x7f80e1420398 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000002 (modules-loaded), data = {test_codelldb} [2022-07-29T06:30:09.644Z DEBUG codelldb::dap_codec] <-- {"seq":5,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"test_codelldb","path":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb/target/debug/test_codelldb","symbolFilePath":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb/target/debug/test_codelldb","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:09.644Z DEBUG codelldb::dap_codec] <-- {"seq":6,"type":"request","command":"runInTerminal","arguments":{"args":["/Users/USERNAME/.vscode/extensions/vadimcn.vscode-lldb-1.7.3/adapter/codelldb","terminal-agent","--connect=53735"],"cwd":"","kind":"integrated","title":"run test_codelldb"}} [2022-07-29T06:30:09.646Z DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3} [2022-07-29T06:30:09.647Z DEBUG codelldb::dap_codec] <-- {"seq":7,"type":"response","request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}} [2022-07-29T06:30:09.651Z DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4} [2022-07-29T06:30:09.651Z DEBUG codelldb::dap_codec] <-- {"seq":8,"type":"response","request_seq":4,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}} [2022-07-29T06:30:09.850Z DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":["cpp_throw"]},"type":"request","seq":5} [2022-07-29T06:30:09.850Z DEBUG codelldb::dap_codec] <-- {"seq":9,"type":"response","request_seq":5,"success":true,"command":"setExceptionBreakpoints"} [2022-07-29T06:30:09.850Z DEBUG codelldb::debug_session] Debug event: 0x7f80e106ebe8 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-29T06:30:09.864Z DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":6} [2022-07-29T06:30:09.865Z DEBUG codelldb::dap_codec] <-- {"seq":10,"type":"response","request_seq":6,"success":true,"command":"configurationDone"} [2022-07-29T06:30:09.870Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":7} [2022-07-29T06:30:09.870Z DEBUG codelldb::dap_codec] <-- {"seq":11,"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[]}} [2022-07-29T06:30:11.247Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":8,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":35281}} [2022-07-29T06:30:11.289Z DEBUG codelldb::dap_codec] <-- {"seq":12,"type":"event","event":"output","body":{"output":"Launching: /Users/USERNAME/Code/_personal/rust/_tests/test_codelldb/target/debug/test_codelldb\n"}} [2022-07-29T06:30:12.537Z DEBUG codelldb::dap_codec] <-- {"seq":13,"type":"event","event":"output","body":{"output":"Launched process 35284\n"}} [2022-07-29T06:30:12.538Z DEBUG codelldb::dap_codec] <-- {"seq":14,"type":"response","request_seq":2,"success":true,"command":"launch"} [2022-07-29T06:30:12.538Z DEBUG codelldb::debug_session] Debug event: 0x7f80e1339978 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-29T06:30:12.538Z DEBUG codelldb::debug_session] Debug event: 0x7f80e1339a58 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000004 (modules-unloaded), data = {test_codelldb} [2022-07-29T06:30:12.538Z DEBUG codelldb::debug_session] Debug event: 0x7f80e071ec58 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000002 (modules-loaded), data = {dyld, test_codelldb} [2022-07-29T06:30:12.538Z DEBUG codelldb::dap_codec] <-- {"seq":15,"type":"event","event":"module","body":{"module":{"id":"100000000","name":""},"reason":"removed"}} [2022-07-29T06:30:12.538Z DEBUG codelldb::dap_codec] <-- {"seq":16,"type":"event","event":"module","body":{"module":{"addressRange":"100078000","id":"100078000","name":"dyld","path":"/usr/lib/dyld","symbolFilePath":"/usr/lib/dyld","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.538Z DEBUG codelldb::debug_session] Debug event: 0x7f80e117db50 Event: broadcaster = 0x7f80e681ca50 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7f80e681ca18 (pid = 35284), state = running} [2022-07-29T06:30:12.538Z DEBUG codelldb::dap_codec] <-- {"seq":17,"type":"event","event":"module","body":{"module":{"addressRange":"100000000","id":"100000000","name":"test_codelldb","path":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb/target/debug/test_codelldb","symbolFilePath":"/Users/USERNAME/Code/_personal/rust/_tests/test_codelldb/target/debug/test_codelldb","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.538Z DEBUG codelldb::dap_codec] <-- {"seq":18,"type":"event","event":"continued","body":{"allThreadsContinued":true,"threadId":0}} [2022-07-29T06:30:12.600Z DEBUG codelldb::debug_session] Debug event: 0x7f80e6311b58 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-29T06:30:12.600Z DEBUG codelldb::dap_codec] <-- {"seq":19,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":1,"message":"Resolved locations: 2","verified":true},"reason":"changed"}} [2022-07-29T06:30:12.600Z DEBUG codelldb::debug_session] Debug event: 0x7f80e142d8a8 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-29T06:30:12.600Z DEBUG codelldb::dap_codec] <-- {"seq":20,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":1,"message":"Resolved locations: 2","verified":true},"reason":"changed"}} [2022-07-29T06:30:12.600Z DEBUG codelldb::debug_session] Debug event: 0x7f80e142dd78 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {} [2022-07-29T06:30:12.600Z DEBUG codelldb::dap_codec] <-- {"seq":21,"type":"event","event":"breakpoint","body":{"breakpoint":{"id":1,"message":"Resolved locations: 2","verified":true},"reason":"changed"}} [2022-07-29T06:30:12.600Z DEBUG codelldb::debug_session] Debug event: 0x7f80e6311b58 Event: broadcaster = 0x7f80e190f440 (lldb.target), type = 0x00000002 (modules-loaded), data = {libSystem.B.dylib, libcache.dylib, libcommonCrypto.dylib, libcompiler_rt.dylib, libcopyfile.dylib, libcorecrypto.dylib, libdispatch.dylib, libdyld.dylib, libkeymgr.dylib, libmacho.dylib, libquarantine.dylib, libremovefile.dylib, libsystem_asl.dylib, libsystem_blocks.dylib, libsystem_c.dylib, libsystem_collections.dylib, libsystem_configuration.dylib, libsystem_containermanager.dylib, libsystem_coreservices.dylib, libsystem_darwin.dylib, libsystem_dnssd.dylib, libsystem_featureflags.dylib, libsystem_info.dylib, libsystem_m.dylib, libsystem_malloc.dylib, libsystem_networkextension.dylib, libsystem_notify.dylib, libsystem_product_info_filter.dylib, libsystem_sandbox.dylib, libsystem_secinit.dylib, libsystem_kernel.dylib, libsystem_platform.dylib, libsystem_pthread.dylib, libsystem_symptoms.dylib, libsystem_trace.dylib, libunwind.dylib, libxpc.dylib, libc++abi.dylib, libobjc.A.dylib, liboah.dylib, libc++.1.dylib, libresolv.9.dylib, libiconv.2.dylib, libcharset.1.dylib} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":22,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B85F000","id":"7FF80B85F000","name":"libSystem.B.dylib","path":"/usr/lib/libSystem.B.dylib","symbolFilePath":"/usr/lib/libSystem.B.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":23,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B85A000","id":"7FF80B85A000","name":"libcache.dylib","path":"/usr/lib/system/libcache.dylib","symbolFilePath":"/usr/lib/system/libcache.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":24,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B816000","id":"7FF80B816000","name":"libcommonCrypto.dylib","path":"/usr/lib/system/libcommonCrypto.dylib","symbolFilePath":"/usr/lib/system/libcommonCrypto.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":25,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B83F000","id":"7FF80B83F000","name":"libcompiler_rt.dylib","path":"/usr/lib/system/libcompiler_rt.dylib","symbolFilePath":"/usr/lib/system/libcompiler_rt.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":26,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B835000","id":"7FF80B835000","name":"libcopyfile.dylib","path":"/usr/lib/system/libcopyfile.dylib","symbolFilePath":"/usr/lib/system/libcopyfile.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":27,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8007F6000","id":"7FF8007F6000","name":"libcorecrypto.dylib","path":"/usr/lib/system/libcorecrypto.dylib","symbolFilePath":"/usr/lib/system/libcorecrypto.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":28,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8008B4000","id":"7FF8008B4000","name":"libdispatch.dylib","path":"/usr/lib/system/libdispatch.dylib","symbolFilePath":"/usr/lib/system/libdispatch.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":29,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800A74000","id":"7FF800A74000","name":"libdyld.dylib","path":"/usr/lib/system/libdyld.dylib","symbolFilePath":"/usr/lib/system/libdyld.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":30,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B851000","id":"7FF80B851000","name":"libkeymgr.dylib","path":"/usr/lib/system/libkeymgr.dylib","symbolFilePath":"/usr/lib/system/libkeymgr.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":31,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B7F4000","id":"7FF80B7F4000","name":"libmacho.dylib","path":"/usr/lib/system/libmacho.dylib","symbolFilePath":"/usr/lib/system/libmacho.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":32,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80AE75000","id":"7FF80AE75000","name":"libquarantine.dylib","path":"/usr/lib/system/libquarantine.dylib","symbolFilePath":"/usr/lib/system/libquarantine.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B84F000","id":"7FF80B84F000","name":"libremovefile.dylib","path":"/usr/lib/system/libremovefile.dylib","symbolFilePath":"/usr/lib/system/libremovefile.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"event","event":"module","body":{"module":{"addressRange":"7FF805A0B000","id":"7FF805A0B000","name":"libsystem_asl.dylib","path":"/usr/lib/system/libsystem_asl.dylib","symbolFilePath":"/usr/lib/system/libsystem_asl.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80079F000","id":"7FF80079F000","name":"libsystem_blocks.dylib","path":"/usr/lib/system/libsystem_blocks.dylib","symbolFilePath":"/usr/lib/system/libsystem_blocks.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":36,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800938000","id":"7FF800938000","name":"libsystem_c.dylib","path":"/usr/lib/system/libsystem_c.dylib","symbolFilePath":"/usr/lib/system/libsystem_c.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":37,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B847000","id":"7FF80B847000","name":"libsystem_collections.dylib","path":"/usr/lib/system/libsystem_collections.dylib","symbolFilePath":"/usr/lib/system/libsystem_collections.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":38,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80A129000","id":"7FF80A129000","name":"libsystem_configuration.dylib","path":"/usr/lib/system/libsystem_configuration.dylib","symbolFilePath":"/usr/lib/system/libsystem_configuration.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":39,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8093D6000","id":"7FF8093D6000","name":"libsystem_containermanager.dylib","path":"/usr/lib/system/libsystem_containermanager.dylib","symbolFilePath":"/usr/lib/system/libsystem_containermanager.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":40,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B52C000","id":"7FF80B52C000","name":"libsystem_coreservices.dylib","path":"/usr/lib/system/libsystem_coreservices.dylib","symbolFilePath":"/usr/lib/system/libsystem_coreservices.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":41,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8030AF000","id":"7FF8030AF000","name":"libsystem_darwin.dylib","path":"/usr/lib/system/libsystem_darwin.dylib","symbolFilePath":"/usr/lib/system/libsystem_darwin.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":42,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B852000","id":"7FF80B852000","name":"libsystem_dnssd.dylib","path":"/usr/lib/system/libsystem_dnssd.dylib","symbolFilePath":"/usr/lib/system/libsystem_dnssd.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":43,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800935000","id":"7FF800935000","name":"libsystem_featureflags.dylib","path":"/usr/lib/system/libsystem_featureflags.dylib","symbolFilePath":"/usr/lib/system/libsystem_featureflags.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":44,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800A8A000","id":"7FF800A8A000","name":"libsystem_info.dylib","path":"/usr/lib/system/libsystem_info.dylib","symbolFilePath":"/usr/lib/system/libsystem_info.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":45,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B792000","id":"7FF80B792000","name":"libsystem_m.dylib","path":"/usr/lib/system/libsystem_m.dylib","symbolFilePath":"/usr/lib/system/libsystem_m.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":46,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800888000","id":"7FF800888000","name":"libsystem_malloc.dylib","path":"/usr/lib/system/libsystem_malloc.dylib","symbolFilePath":"/usr/lib/system/libsystem_malloc.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":47,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8059A6000","id":"7FF8059A6000","name":"libsystem_networkextension.dylib","path":"/usr/lib/system/libsystem_networkextension.dylib","symbolFilePath":"/usr/lib/system/libsystem_networkextension.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":48,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8034D5000","id":"7FF8034D5000","name":"libsystem_notify.dylib","path":"/usr/lib/system/libsystem_notify.dylib","symbolFilePath":"/usr/lib/system/libsystem_notify.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":49,"type":"event","event":"module","body":{"module":{"addressRange":"7FF811ACB000","id":"7FF811ACB000","name":"libsystem_product_info_filter.dylib","path":"/usr/lib/system/libsystem_product_info_filter.dylib","symbolStatus":"Symbols not found"},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":50,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80A12D000","id":"7FF80A12D000","name":"libsystem_sandbox.dylib","path":"/usr/lib/system/libsystem_sandbox.dylib","symbolFilePath":"/usr/lib/system/libsystem_sandbox.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":51,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B84C000","id":"7FF80B84C000","name":"libsystem_secinit.dylib","path":"/usr/lib/system/libsystem_secinit.dylib","symbolFilePath":"/usr/lib/system/libsystem_secinit.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":52,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800A30000","id":"7FF800A30000","name":"libsystem_kernel.dylib","path":"/usr/lib/system/libsystem_kernel.dylib","symbolFilePath":"/usr/lib/system/libsystem_kernel.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":53,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800A80000","id":"7FF800A80000","name":"libsystem_platform.dylib","path":"/usr/lib/system/libsystem_platform.dylib","symbolFilePath":"/usr/lib/system/libsystem_platform.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":54,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800A68000","id":"7FF800A68000","name":"libsystem_pthread.dylib","path":"/usr/lib/system/libsystem_pthread.dylib","symbolFilePath":"/usr/lib/system/libsystem_pthread.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":55,"type":"event","event":"module","body":{"module":{"addressRange":"7FF807257000","id":"7FF807257000","name":"libsystem_symptoms.dylib","path":"/usr/lib/system/libsystem_symptoms.dylib","symbolFilePath":"/usr/lib/system/libsystem_symptoms.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":56,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8007DD000","id":"7FF8007DD000","name":"libsystem_trace.dylib","path":"/usr/lib/system/libsystem_trace.dylib","symbolFilePath":"/usr/lib/system/libsystem_trace.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":57,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B822000","id":"7FF80B822000","name":"libunwind.dylib","path":"/usr/lib/system/libunwind.dylib","symbolFilePath":"/usr/lib/system/libunwind.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":58,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8007A1000","id":"7FF8007A1000","name":"libxpc.dylib","path":"/usr/lib/system/libxpc.dylib","symbolFilePath":"/usr/lib/system/libxpc.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":59,"type":"event","event":"module","body":{"module":{"addressRange":"7FF800A1A000","id":"7FF800A1A000","name":"libc++abi.dylib","path":"/usr/lib/libc++abi.dylib","symbolFilePath":"/usr/lib/libc++abi.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":60,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8008FB000","id":"7FF8008FB000","name":"libobjc.A.dylib","path":"/usr/lib/libobjc.A.dylib","symbolFilePath":"/usr/lib/libobjc.A.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":61,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B82D000","id":"7FF80B82D000","name":"liboah.dylib","path":"/usr/lib/liboah.dylib","symbolFilePath":"/usr/lib/liboah.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":62,"type":"event","event":"module","body":{"module":{"addressRange":"7FF8009C1000","id":"7FF8009C1000","name":"libc++.1.dylib","path":"/usr/lib/libc++.1.dylib","symbolFilePath":"/usr/lib/libc++.1.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":63,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80E691000","id":"7FF80E691000","name":"libresolv.9.dylib","path":"/usr/lib/libresolv.9.dylib","symbolFilePath":"/usr/lib/libresolv.9.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":64,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B8A0000","id":"7FF80B8A0000","name":"libiconv.2.dylib","path":"/usr/lib/libiconv.2.dylib","symbolFilePath":"/usr/lib/libiconv.2.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.601Z DEBUG codelldb::dap_codec] <-- {"seq":65,"type":"event","event":"module","body":{"module":{"addressRange":"7FF80B7F3000","id":"7FF80B7F3000","name":"libcharset.1.dylib","path":"/usr/lib/libcharset.1.dylib","symbolFilePath":"/usr/lib/libcharset.1.dylib","symbolStatus":"Symbols loaded."},"reason":"new"}} [2022-07-29T06:30:12.612Z DEBUG codelldb::debug_session] Debug event: 0x7f80e6206ca0 Event: broadcaster = 0x7f80e681ca50 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7f80e681ca18 (pid = 35284), state = exited} [2022-07-29T06:30:12.612Z DEBUG codelldb::dap_codec] <-- {"seq":66,"type":"event","event":"output","body":{"output":"Process exited with code 101.\n"}} [2022-07-29T06:30:12.613Z DEBUG codelldb::dap_codec] <-- {"seq":67,"type":"event","event":"exited","body":{"exitCode":101}} [2022-07-29T06:30:12.613Z DEBUG codelldb::dap_codec] <-- {"seq":68,"type":"event","event":"terminated","body":{}} [2022-07-29T06:30:12.667Z DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false,"terminateDebuggee":false},"type":"request","seq":9} [2022-07-29T06:30:12.667Z DEBUG codelldb::dap_codec] <-- {"seq":69,"type":"response","request_seq":9,"success":true,"command":"disconnect"} [2022-07-29T06:30:13.171Z DEBUG codelldb::dap_session] Client has disconnected [2022-07-29T06:30:13.171Z DEBUG codelldb::debug_session] End of the requests stream [2022-07-29T06:30:13.171Z DEBUG codelldb::debug_session] DebugSession::drop() [2022-07-29T06:30:13.171Z DEBUG codelldb] End of debug session [2022-07-29T06:30:13.182Z DEBUG codelldb] Exiting Debug adapter exit code=0 (0x0), signal=null.

Banyc avatar Jul 29 '22 06:07 Banyc

Do you have "sourceLanguages": ["rust"] in your launch configuration?

vadimcn avatar Jul 29 '22 17:07 vadimcn

@vadimcn usually I debug a program through the "code lens" feature without creating a launch.json

For example, I click "Debug" here: image

Banyc avatar Jul 30 '22 08:07 Banyc

You'll need to find out what debug configuration was passed down by the extension providing the code lens. It should have been there at the beginning of the verbose log.

vadimcn avatar Jul 30 '22 18:07 vadimcn

@vadimcn Yes I saw the line sourceLanguages: [ 'rust' ], at the verbose log

Banyc avatar Jul 30 '22 18:07 Banyc

Can confirm this issue too on Arch Linux

VSCodium: 1.70.0 Extension version: 1.7.3 rustc: 1.6.2

crabdancing avatar Aug 10 '22 01:08 crabdancing

I'm getting this too, it seems to be showing the C++ catches in the breakpoint pane instead of Rust. Used to work and haven't changed my config.

Screen Shot 2022-08-11 at 20 05 32

oeed avatar Aug 11 '22 08:08 oeed

@oeed yeah, I'm seeing the same thing. There is no 'catch all' option, either.

crabdancing avatar Aug 11 '22 16:08 crabdancing