Debugger fails to start (Fresh install / macOS 10.13)
OS: macOS High Sierra (10.13.6) VSCode version: 1.55.2 (Also tried on the latest insiders) Extension version: 1.6.2 Compiler: Rust compiler 1.51.0 Build target:
The extension fails to kick into debugging mode while attempting to debug a 1-line hello world rust program. This is with a fresh project, after a fresh installation of CodeLLDB.
It's possible that there's something wrong with this machine. It works fine another machine running Mojave.
The which was built for Mac OS X 10.15 in the error message seems a bit off. I'm on 10.13. Maybe this causing problems?
Running `cargo build --bin=updater --package=updater --message-format=json`...
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Raw artifacts:
{
fileName: '[ path to the project ]/services/updater/target/debug/updater',
name: 'updater',
kind: 'bin'
}
Filtered artifacts:
{
fileName: '[ path to the project ]/services/updater/target/debug/updater',
name: 'updater',
kind: 'bin'
}
configuration: {
type: 'lldb',
request: 'launch',
name: "Debug executable 'updater'",
args: [],
program: '${workspaceFolder}/target/debug/updater',
cwd: '${workspaceFolder}/target/debug/',
sourceLanguages: [ 'rust' ],
__configurationTarget: 5,
relativePathBase: '[ path to the project ]/services/updater'
}
liblldb: /Users/paul/.vscode/extensions/vadimcn.vscode-lldb-1.6.2/lldb/lib/liblldb.dylib
environment: {}
params: {
evaluateForHovers: true,
commandCompletions: true,
sourceLanguages: [ 'rust' ]
}
Listening on port 58829
[2021-04-25T16:44:01.686Z DEBUG codelldb] New debug session
dyld: lazy symbol binding failed: Symbol not found: _objc_alloc_init
Referenced from: /Users/paul/.vscode/extensions/vadimcn.vscode-lldb-1.6.2/lldb/lib/liblldb.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_alloc_init
Referenced from: /Users/paul/.vscode/extensions/vadimcn.vscode-lldb-1.6.2/lldb/lib/liblldb.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libobjc.A.dylib
Received signal: SIGABRT
0: backtrace::backtrace::trace
1: backtrace::capture::Backtrace::new
2: codelldb::hook_crashes::handler
3: __sigtramp
Debug adapter exit code=255, signal=null.
Can you please try this release?
Can you please try this release?
Hello. Found this problem on my Mac OS 10.13 also. I tested your v.163-dev vsix too, it's running well for my purpose.
But there is an output about terminal bugs.
Failed to redirect stdio to a terminal. (Terminal agent did not respond within the allotted time.)
Debuggee output will appear here.
Launching: /Users/xxx/xxx/rust-training/cargo-space/target/debug/cargo-space
Launched process 30287
Hello, world!
Process exited with code 0.
Fixed in 1.6.3