codelldb icon indicating copy to clipboard operation
codelldb copied to clipboard

Does not work properly under macos

Open aohanhe opened this issue 2 years ago • 4 comments
trafficstars

~/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin/lldb target/debug/rusttest (lldb) target create "target/debug/rusttest" Current executable set to '/Volumes/AhhData/testcode/rusttest/target/debug/rusttest' (x86_64). (lldb) run Process 11338 launched: '/Volumes/AhhData/testcode/rusttest/target/debug/rusttest' (x86_64) Process 11338 exited with status = -1 (0xffffffff) lost connection

aohanhe avatar Nov 02 '23 02:11 aohanhe

I tried to delete the original lldb file and create a link for /us/bin/lldb as lldb, but it still didn't work

aohanhe avatar Nov 02 '23 02:11 aohanhe

I recently discovered that I am no longer able to launch the debugger on macOS. I'm not sure when this happened, but I have been using this extension for quite some time prior without issue.

As a sanity check I generated a new binary Rust project (cargo new --bin foo), let VS Code generate the launch.json for me, and put a breakpoint on the single println!() within main. This was the result:

Console is in 'commands' mode, prefix expressions with '?'.
Launching: /Users/jesse/Play/foo/target/debug/foo
Launched process 3315
Process exited with code -1.

I additionally tried debugging an older project with a known-good launch.json, and it fails in the same way.

Running macOS Sonoma 14.1.1 (23B81) on x86_64.

jessebraham avatar Dec 02 '23 09:12 jessebraham

Same as #999?

vadimcn avatar Dec 07 '23 18:12 vadimcn

I think so, yes. I can test on macOS on both Intel and Arm if needed, but unfortunately I don't have time to dig into this issue myself.

jessebraham avatar Dec 07 '23 19:12 jessebraham