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

Internal debugger Error when building Rust project #1062

Closed mankinskin closed 5 months ago

mankinskin commented 5 months ago

OS: Windows 10 VSCode version: 1.85.1 CodeLLDB version: 1.10.0 Compiler: rustc 1.77.0-nightly Debuggee: x86_64-windows-msvc

When debugging my project, I hit run, a window "unknown error" pops up. The critical error message seems to be [ERROR codelldb::debug_session] Internal debugger error: error: process 0 in state = exited, but cannot detach it in this state

launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Launch",
            "cargo": {
                "args": [
                    "build",
                ]
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        }

    ],
}
Verbose LLDB Output ``` Initial debug configuration: { type: 'lldb', request: 'launch', name: 'Launch', cargo: { args: [ 'build' ] }, args: [], cwd: '${workspaceFolder}', __configurationTarget: 6 } Raw artifacts: { fileName: 'c:\\Users\\xx\\git\\rust_audio\\target\\debug\\rust_audio.exe', name: 'rust_audio', kind: 'bin' } Filtered artifacts: { fileName: 'c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe', name: 'rust_audio', kind: 'bin' } Resolved debug configuration: { type: 'lldb', request: 'launch', name: 'Launch', args: [], cwd: '${workspaceFolder}', __configurationTarget: 6, terminal: 'integrated', relativePathBase: 'c:\\Users\\xxx\\git\\rust_audio', program: 'c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe', sourceLanguages: [ 'rust' ], _adapterSettings: { displayFormat: 'auto', showDisassembly: 'never', dereferencePointers: true, suppressMissingSourceFiles: true, evaluationTimeout: 5, consoleMode: 'commands', sourceLanguages: null, terminalPromptClear: null, evaluateForHovers: true, commandCompletions: true, reproducer: false } } liblldb: c:\Users\xxx\.vscode\extensions\vadimcn.vscode-lldb-1.10.0\lldb\bin\liblldb.dll environment: {} settings: { evaluateForHovers: true, commandCompletions: true, sourceLanguages: [ 'rust' ] } [DEBUG codelldb] Connecting to 127.0.0.1:55932 [DEBUG codelldb] New debug session [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","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true},"type":"request","seq":1} [DEBUG codelldb::dap_codec] <-- {"seq":1,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic","supportsCondition":true}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsDisassembleRequest":true,"supportsEvaluateForHovers":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsInstructionBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsSetVariable":true,"supportsSteppingGranularity":true,"supportsWriteMemoryRequest":true}} [DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"Launch","args":[],"cwd":"C:\\Users\\xxx\\git\\rust_audio","__configurationTarget":6,"terminal":"integrated","relativePathBase":"c:\\Users\\xxx\\git\\rust_audio","program":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","sourceLanguages":["rust"],"_adapterSettings":{"displayFormat":"auto","showDisassembly":"never","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"edc4bd60-aa38-4719-b3b6-200bbf17ea34"},"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) 15:43:25 formatters: Initializing INFO(Python) 15:43:25 formatters.rust: Initializing [DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"initialized"} [DEBUG codelldb::debug_session] Debug event: 0000026E45FC5850 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rust_audio.exe} [DEBUG codelldb::dap_codec] <-- {"seq":4,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rust_audio.exe","path":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolFilePath":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":5,"type":"request","command":"runInTerminal","arguments":{"args":["c:\\Users\\xxx\\.vscode\\extensions\\vadimcn.vscode-lldb-1.10.0\\adapter\\codelldb.exe","terminal-agent","--connect=55934"],"cwd":"","kind":"integrated","title":"Launch"}} [DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3} [DEBUG codelldb::dap_codec] <-- {"seq":6,"type":"response","request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}} [DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4} [DEBUG codelldb::dap_codec] <-- {"seq":7,"type":"response","request_seq":4,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}} [DEBUG codelldb::dap_codec] --> {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5} [DEBUG codelldb::dap_codec] <-- {"seq":8,"type":"response","request_seq":5,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]}} [DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"rust_panic"}]},"type":"request","seq":6} [DEBUG codelldb::dap_codec] --> {"type":"response","seq":7,"command":"runInTerminal","request_seq":5,"success":true,"body":{"shellProcessId":1160}} [DEBUG codelldb::debug_session] Debug event: 0000026E4784B240 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: breakpoint added} [DEBUG codelldb::dap_codec] <-- {"seq":9,"type":"response","request_seq":6,"success":true,"command":"setExceptionBreakpoints"} [DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":8} [adapter\codelldb\src\terminal.rs:101] winapi::um::wincon::FreeConsole() = 1 [DEBUG codelldb::dap_codec] <-- {"seq":10,"type":"event","event":"output","body":{"category":"console","output":"Launching: c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe\n"}} [adapter\codelldb\src\terminal.rs:102] winapi::um::wincon::AttachConsole(pid) = 1 [adapter\codelldb\src\terminal.rs:109] winapi::um::wincon::FreeConsole() = 1 [ERROR codelldb::debug_session] unknown error [DEBUG codelldb::dap_codec] <-- {"seq":11,"type":"response","request_seq":2,"success":false,"command":"","message":"unknown error","show_user":true} [DEBUG codelldb::debug_session] Debug event: 0000026E5C344BF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rust_audio.exe} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3441B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000004 (modules-unloaded), data = {rust_audio.exe, rust_audio.exe} [DEBUG codelldb::dap_codec] <-- {"seq":12,"type":"response","request_seq":8,"success":true,"command":"configurationDone"} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3448F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations removed} [DEBUG codelldb::dap_codec] <-- {"seq":13,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rust_audio.exe","path":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolFilePath":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C344970 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rust_audio.exe} [DEBUG codelldb::dap_codec] <-- {"seq":14,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C344330 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rust_audio.exe} [DEBUG codelldb::dap_codec] <-- {"seq":15,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}} [DEBUG codelldb::dap_codec] <-- {"seq":16,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rust_audio.exe","path":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolFilePath":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C345DF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll} [DEBUG codelldb::dap_codec] <-- {"seq":17,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rust_audio.exe","path":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolFilePath":"c:\\Users\\xxx\\git\\rust_audio\\target\\debug\\rust_audio.exe","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":18,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9650000","id":"7FFFF9650000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C345270 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3451F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E5C345630 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":19,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9650000","id":"7FFFF9650000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3460F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll} [DEBUG codelldb::dap_codec] <-- {"seq":20,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7AA0000","id":"7FFFF7AA0000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C346070 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll} [DEBUG codelldb::dap_codec] <-- {"seq":21,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7AA0000","id":"7FFFF7AA0000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C346A30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {shlwapi.dll} [DEBUG codelldb::dap_codec] <-- {"seq":22,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF6F00000","id":"7FFFF6F00000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3470B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {shlwapi.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3466B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll} [DEBUG codelldb::dap_codec] <-- {"seq":23,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF6F00000","id":"7FFFF6F00000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C346830 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll} [DEBUG codelldb::dap_codec] <-- {"seq":24,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF77D0000","id":"7FFFF77D0000","name":"shlwapi.dll","path":"C:\\Windows\\System32\\shlwapi.dll","symbolFilePath":"C:\\Windows\\System32\\shlwapi.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E5C346FF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {opengl32.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E5C3462F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {opengl32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":25,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF77D0000","id":"7FFFF77D0000","name":"shlwapi.dll","path":"C:\\Windows\\System32\\shlwapi.dll","symbolFilePath":"C:\\Windows\\System32\\shlwapi.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6FA70 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {justlog.dll} [DEBUG codelldb::dap_codec] <-- {"seq":26,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7E50000","id":"7FFFF7E50000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6FC30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {justlog.dll} [DEBUG codelldb::dap_codec] <-- {"seq":27,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7E50000","id":"7FFFF7E50000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6FA30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {user32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":28,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFCD990000","id":"7FFFCD990000","name":"opengl32.dll","path":"C:\\Windows\\System32\\opengl32.dll","symbolFilePath":"C:\\Windows\\System32\\opengl32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70370 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {user32.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6FC70 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {advapi32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":29,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFCD990000","id":"7FFFCD990000","name":"opengl32.dll","path":"C:\\Windows\\System32\\opengl32.dll","symbolFilePath":"C:\\Windows\\System32\\opengl32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6FBB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {advapi32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":30,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF69950000","id":"7FFF69950000","name":"justlog.dll","path":"C:\\Users\\xxx\\git\\rust_audio\\target\\debug\\justlog.dll","symbolFilePath":"C:\\Users\\xxx\\git\\rust_audio\\target\\debug\\justlog.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6F9F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcrypt.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB708B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {bcrypt.dll} [DEBUG codelldb::dap_codec] <-- {"seq":31,"type":"event","event":"module","body":{"module":{"addressRange":"7FFF69950000","id":"7FFF69950000","name":"justlog.dll","path":"C:\\Users\\xxx\\git\\rust_audio\\target\\debug\\justlog.dll","symbolFilePath":"C:\\Users\\xxx\\git\\rust_audio\\target\\debug\\justlog.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB6FDB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {win32u.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70070 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {win32u.dll} [DEBUG codelldb::dap_codec] <-- {"seq":32,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF84B0000","id":"7FFFF84B0000","name":"user32.dll","path":"C:\\Windows\\System32\\user32.dll","symbolFilePath":"C:\\Windows\\System32\\user32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB700B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF84B0000","id":"7FFFF84B0000","name":"user32.dll","path":"C:\\Windows\\System32\\user32.dll","symbolFilePath":"C:\\Windows\\System32\\user32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70970 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7960000","id":"7FFFF7960000","name":"advapi32.dll","path":"C:\\Windows\\System32\\advapi32.dll","symbolFilePath":"C:\\Windows\\System32\\advapi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB716B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ws2_32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7960000","id":"7FFFF7960000","name":"advapi32.dll","path":"C:\\Windows\\System32\\advapi32.dll","symbolFilePath":"C:\\Windows\\System32\\advapi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":36,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7200000","id":"7FFFF7200000","name":"bcrypt.dll","path":"C:\\Windows\\System32\\bcrypt.dll","symbolFilePath":"C:\\Windows\\System32\\bcrypt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70FF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ws2_32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":37,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7200000","id":"7FFFF7200000","name":"bcrypt.dll","path":"C:\\Windows\\System32\\bcrypt.dll","symbolFilePath":"C:\\Windows\\System32\\bcrypt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70DF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {sechost.dll} [DEBUG codelldb::dap_codec] <-- {"seq":38,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7510000","id":"7FFFF7510000","name":"win32u.dll","path":"C:\\Windows\\System32\\win32u.dll","symbolFilePath":"C:\\Windows\\System32\\win32u.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB718B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {sechost.dll} [DEBUG codelldb::dap_codec] <-- {"seq":39,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7510000","id":"7FFFF7510000","name":"win32u.dll","path":"C:\\Windows\\System32\\win32u.dll","symbolFilePath":"C:\\Windows\\System32\\win32u.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70FB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32full.dll} [DEBUG codelldb::dap_codec] <-- {"seq":40,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7EF0000","id":"7FFFF7EF0000","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70BF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {gdi32full.dll} [DEBUG codelldb::dap_codec] <-- {"seq":41,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7EF0000","id":"7FFFF7EF0000","name":"gdi32.dll","path":"C:\\Windows\\System32\\gdi32.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71070 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll} [DEBUG codelldb::dap_codec] <-- {"seq":42,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9480000","id":"7FFFF9480000","name":"ws2_32.dll","path":"C:\\Windows\\System32\\ws2_32.dll","symbolFilePath":"C:\\Windows\\System32\\ws2_32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB710F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll} [DEBUG codelldb::dap_codec] <-- {"seq":43,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9480000","id":"7FFFF9480000","name":"ws2_32.dll","path":"C:\\Windows\\System32\\ws2_32.dll","symbolFilePath":"C:\\Windows\\System32\\ws2_32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71170 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll} [DEBUG codelldb::dap_codec] <-- {"seq":44,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7D00000","id":"7FFFF7D00000","name":"sechost.dll","path":"C:\\Windows\\System32\\sechost.dll","symbolFilePath":"C:\\Windows\\System32\\sechost.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB710B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {rpcrt4.dll} [DEBUG codelldb::dap_codec] <-- {"seq":45,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7D00000","id":"7FFFF7D00000","name":"sechost.dll","path":"C:\\Windows\\System32\\sechost.dll","symbolFilePath":"C:\\Windows\\System32\\sechost.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":46,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF72E0000","id":"7FFFF72E0000","name":"gdi32full.dll","path":"C:\\Windows\\System32\\gdi32full.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32full.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71530 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000004 (modules-unloaded), data = {rpcrt4.dll} [DEBUG codelldb::dap_codec] <-- {"seq":47,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF72E0000","id":"7FFFF72E0000","name":"gdi32full.dll","path":"C:\\Windows\\System32\\gdi32full.dll","symbolFilePath":"C:\\Windows\\System32\\gdi32full.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70A30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations removed} [DEBUG codelldb::dap_codec] <-- {"seq":48,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB717B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll} [DEBUG codelldb::dap_codec] <-- {"seq":49,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71130 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbase.dll} [DEBUG codelldb::dap_codec] <-- {"seq":50,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":51,"type":"event","event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"rpcrt4.dll","path":"C:\\Windows\\System32\\rpcrt4.dll","symbolFilePath":"C:\\Windows\\System32\\rpcrt4.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB70CB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp_win.dll} [DEBUG codelldb::dap_codec] <-- {"seq":52,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}} [DEBUG codelldb::dap_codec] <-- {"seq":53,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF6D20000","id":"7FFFF6D20000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB713F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp_win.dll} [DEBUG codelldb::dap_codec] <-- {"seq":54,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF6D20000","id":"7FFFF6D20000","name":"ucrtbase.dll","path":"C:\\Windows\\System32\\ucrtbase.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72370 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {combase.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB720B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {combase.dll} [DEBUG codelldb::dap_codec] <-- {"seq":55,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7470000","id":"7FFFF7470000","name":"msvcp_win.dll","path":"C:\\Windows\\System32\\msvcp_win.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp_win.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":56,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7470000","id":"7FFFF7470000","name":"msvcp_win.dll","path":"C:\\Windows\\System32\\msvcp_win.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp_win.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71C30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ole32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":57,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF8E00000","id":"7FFFF8E00000","name":"combase.dll","path":"C:\\Windows\\System32\\combase.dll","symbolFilePath":"C:\\Windows\\System32\\combase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71D70 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ole32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":58,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF8E00000","id":"7FFFF8E00000","name":"combase.dll","path":"C:\\Windows\\System32\\combase.dll","symbolFilePath":"C:\\Windows\\System32\\combase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71BB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {shell32.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72830 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {shell32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":59,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9190000","id":"7FFFF9190000","name":"ole32.dll","path":"C:\\Windows\\System32\\ole32.dll","symbolFilePath":"C:\\Windows\\System32\\ole32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71FF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB719B0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140.dll} [DEBUG codelldb::dap_codec] <-- {"seq":60,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9190000","id":"7FFFF9190000","name":"ole32.dll","path":"C:\\Windows\\System32\\ole32.dll","symbolFilePath":"C:\\Windows\\System32\\ole32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB719F0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {oleaut32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":61,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF8650000","id":"7FFFF8650000","name":"shell32.dll","path":"C:\\Windows\\System32\\shell32.dll","symbolFilePath":"C:\\Windows\\System32\\shell32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71A70 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {oleaut32.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB71CB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {imm32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":62,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF8650000","id":"7FFFF8650000","name":"shell32.dll","path":"C:\\Windows\\System32\\shell32.dll","symbolFilePath":"C:\\Windows\\System32\\shell32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72F30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {imm32.dll} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72B30 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {crypt32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":63,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF1960000","id":"7FFFF1960000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72970 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000002 (modules-loaded), data = {crypt32.dll} [DEBUG codelldb::dap_codec] <-- {"seq":64,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF1960000","id":"7FFFF1960000","name":"vcruntime140.dll","path":"C:\\Windows\\System32\\vcruntime140.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72BF0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000004 (modules-unloaded), data = {rust_audio.exe} [DEBUG codelldb::dap_codec] <-- {"seq":65,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7830000","id":"7FFFF7830000","name":"oleaut32.dll","path":"C:\\Windows\\System32\\oleaut32.dll","symbolFilePath":"C:\\Windows\\System32\\oleaut32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::debug_session] Debug event: 0000026E6EB72CB0 Event: broadcaster = 0000026E46164968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations removed} [DEBUG codelldb::dap_codec] <-- {"seq":66,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7830000","id":"7FFFF7830000","name":"oleaut32.dll","path":"C:\\Windows\\System32\\oleaut32.dll","symbolFilePath":"C:\\Windows\\System32\\oleaut32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":67,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9160000","id":"7FFFF9160000","name":"imm32.dll","path":"C:\\Windows\\System32\\imm32.dll","symbolFilePath":"C:\\Windows\\System32\\imm32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":68,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF9160000","id":"7FFFF9160000","name":"imm32.dll","path":"C:\\Windows\\System32\\imm32.dll","symbolFilePath":"C:\\Windows\\System32\\imm32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":69,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7540000","id":"7FFFF7540000","name":"crypt32.dll","path":"C:\\Windows\\System32\\crypt32.dll","symbolFilePath":"C:\\Windows\\System32\\crypt32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":70,"type":"event","event":"module","body":{"module":{"addressRange":"7FFFF7540000","id":"7FFFF7540000","name":"crypt32.dll","path":"C:\\Windows\\System32\\crypt32.dll","symbolFilePath":"C:\\Windows\\System32\\crypt32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}} [DEBUG codelldb::dap_codec] <-- {"seq":71,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}} [DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9} [ERROR codelldb::debug_session] Internal debugger error: error: process 0 in state = exited, but cannot detach it in this state. [DEBUG codelldb::dap_codec] <-- {"seq":72,"type":"response","request_seq":9,"success":false,"command":"","message":"Internal debugger error: error: process 0 in state = exited, but cannot detach it in this state.","show_user":true} [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. ```
mankinskin commented 5 months ago

Okay the problem was that for some reason my executable did not find a DLL. Somehow cargo run managed to find it but not link it in the executable. So when running the exe by itself i got the error "std####.dll not found" and I found this dll in the .rustup folder for the rust toolchain. Then I added this path (C:\Users\xxxx\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib) to the PATH variable and then it found the dll. It feels like there should be a way without writing the exact toolchain name into PATH, but I could not find any. Only referring to .rustup does not work.