Error: process resume at entry point failed: Resume timed out.
OS: macOS Monterey 12.2 (21D49), running on Apple Silicon (Arm64) VSCode version: 1.64.2 CodeLLDB version: v1.6.10 Compiler: rustc 1.59.0 Debuggee: x86_64-apple-darwin
I am trying to debug a Rust program from VSCode using CodeLLDB. My test project (including launch.json) can be found at https://github.com/emilk/rust_debug_test
When I start the debugger I get the error process resume at entry point failed: Resume timed out.
Verbose log
Running `cargo build --bin=rust_debug_test --package=rust_debug_test --message-format=json`...
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Raw artifacts:
{
fileName: '/Users/emilk/code/rust_debug_test/target/debug/rust_debug_test',
name: 'rust_debug_test',
kind: 'bin'
}
Filtered artifacts:
{
fileName: '/Users/emilk/code/rust_debug_test/target/debug/rust_debug_test',
name: 'rust_debug_test',
kind: 'bin'
}
configuration: {
type: 'lldb',
request: 'launch',
name: "Debug executable 'rust_debug_test'",
args: [],
cwd: '${workspaceFolder}',
__configurationTarget: 5,
relativePathBase: '/Users/emilk/code/rust_debug_test',
program: '/Users/emilk/code/rust_debug_test/target/debug/rust_debug_test',
sourceLanguages: [ 'rust' ]
}
liblldb: /Users/emilk/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/lldb/lib/liblldb.dylib
environment: {}
params: {
evaluateForHovers: true,
commandCompletions: true,
sourceLanguages: [ 'rust' ]
}
Listening on port 62938
[2022-03-09T13:34:19.051Z DEBUG codelldb] New debug session
INFO(Python) 14:34:19 formatters: Initializing
INFO(Python) 14:34:19 formatters.rust: Initializing
[2022-03-09T13:34:19.427Z 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-03-09T13:34:19.433Z DEBUG codelldb::dap_codec] {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"Debug executable 'rust_debug_test'","args":[],"cwd":"/Users/emilk/code/rust_debug_test","__configurationTarget":5,"relativePathBase":"/Users/emilk/code/rust_debug_test","program":"/Users/emilk/code/rust_debug_test/target/debug/rust_debug_test","sourceLanguages":["rust"],"_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"b726b825-a494-4038-bcab-94977064abc9"},"type":"request","seq":2}
[2022-03-09T13:34:19.441Z DEBUG codelldb::dap_codec] {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3}
[2022-03-09T13:34:19.527Z DEBUG codelldb::dap_codec] {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
[2022-03-09T13:34:19.532Z DEBUG codelldb::dap_codec] {"command":"setExceptionBreakpoints","arguments":{"filters":["rust_panic"]},"type":"request","seq":5}
[2022-03-09T13:34:19.564Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":6,"command":"runInTerminal","request_seq":4,"success":true,"body":{"shellProcessId":72582}}
[2022-03-09T13:34:19.569Z DEBUG codelldb::debug_session] Debug event: 0x6000031e1718 Event: broadcaster = 0x7fd19c815440 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2022-03-09T13:34:19.569Z DEBUG codelldb::dap_codec] {"command":"configurationDone","type":"request","seq":7}
[2022-03-09T13:34:19.578Z DEBUG codelldb::dap_codec] {"command":"threads","type":"request","seq":8}
[2022-03-09T13:34:19.585Z DEBUG codelldb::dap_codec] ' panicked at 'Whoops! Something that was supposed to have been initialized at this point, wasn't.', [2022-03-09T13:34:24.953Z DEBUG codelldb::dap_codec] (NOTE: the target is x86_64-apple-darwin even though I am running Apple Silicon. If I use --target x86_64-apple-darwin I get a different problem: [2022-03-09T13:47:46.452Z ERROR codelldb::debug_session] process exited with status -1 (Error 1))
Related discussion: https://github.com/vadimcn/vscode-lldb/discussions/615
I had this problem. I solved it by uninstalling and then reinstalling the CodeLLDB extension in VSCode. 🤷
Hi, I'm having a similar problem. Can you tell me how you solved it?