-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to debug in WSL with Remote - WSL plugin #177
Comments
Maybe similar to this issue #141 |
I'm not sure debugging in WSL works at all - last time I checked, it did not implement enough of strace syscall for lldb to function. I would recommend testing this using command line lldb first. In any case, debugging a WSL process with Win32 debugger will not work. You need to treat WSL debugging as a remote target - start a Linux version of lldb-server, then connect to it as if it were on a remote machine. Actually, these days it might be easier to use VSCode Remote Development capabilities. |
That's what I am trying to use here. I used the Remote-WSL plugin and was able to "remotely" debug C++ programs on WSL with gdb. So I guess you are right, as I tested with the lldb command line it shows the below messages:
|
I have the same problem using VSCode remote WSL, but it seem like a python problem, and the debug session stuck at starting the app. Here is the log from the output with verbose turn on : The log from debug console: My launch option:
My python's version is 2.7.16 |
WSL 2 fixes the issue probably. Debugging via lldb works for me out of the box in WSL 2. |
@tommassino That's good to know but no much surprise. WSL 2 has a real Linux kernel so I would be surprised if it does not work. |
Currently not being able to use in WSL 2 Alpine. Provided by package GCC is present via build-base Alpine meta-package: Running on WSL 2: |
It goes the same for me.. was working fine in mac In WSL 1, haven't upgraded to WSL 2 from my end. It just says its launching lldb and that's it |
CodeLLDB is built for glibc-based Linux'es. I might work on Alpine if you install glibc, but I've never tried this. |
@vadimcn Just tried this. Fails with the following: /tmp/vscode-unpacked/vadimcn.vscode-lldb.vsix/extension/adapter/codelldb: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Error: The debugger exited without completing startup handshake. |
Which OS: Windows 10
Which VSCode version: 1.34.0-insiders
Which extension version: 1.2.3
Which adapter type: classic
Which LLDB version: 6.0.0
What is the problem and how did you get there:
Problem:
Not able to debug a Rust program in WSL session with the Remote - WSL plugin
How to reproduce:
cargo new guessing_game --bin
src/main.rs
type in:println!("Hello, {}!", name);
The code-lldb plugin did not recognize theCargo.toml
file as on Linux and therefore, was not able to generate thelaunch.json
based on that file. The above launch configuration was copied from an identical Rust project on Linux and used in this project.Update: The code-lldb plugin was able to recognize the
Cargo.toml
file after all. Probably due to a reboot.The text was updated successfully, but these errors were encountered: