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
sourceFileMap not working when using WSL #4929
Comments
I'm not convinced that this is a VS Code issue. Please see microsoft/vscode-cpptools#7389 (comment) |
For what it's worth, I seem to be having the same problem (or at least, the same symptom) trying to debug a python app in a container via remote-ssh (i.e., Windows VSCode -> Linux VM via remote-ssh -> python app in docker container). I get this:
I've changed some hostname/path details but they shouldn't matter. I realise I'm using a completely different debugger ( To clarify, I am connecting ( I've tried a bunch of variations with the source/path mapping, but I don't think any have had any affect; even when using intentionally wrong local paths, the error message doesn't change (i.e., the wrong path doesn't appear in the message), suggesting that whatever I'm doing with the path mapping is being ignored (maybe hinting that I haven't got the remote side correct in order for replacement to occur??). The use of a symlink might be workable short-term, but I'd really like this to work properly, as it opens up great opportunities for dev/debugging more broadly. |
@i-am-david-fernandez please note that "path/source mappings" like the |
@weinand Thank-you for such a rapid response. I must admit that I did (do) not understand how the different parts (pydebug, remote-ssh, python extension) worked together, and somewhat assumed that the remote extension was, as a kind-of middle-man, responsible for the translation. I'm still not certain whether you mean the "application-end" debugger ( Whichever, you've clarified that my problem does not lie with the remote extension. Edit: @weinand Thanks to your comment, I've found what I think is the root cause of my problem: microsoft/vscode-python#14820 Thank-you for helping me find it! |
When debugging using gdb, on WSL ubuntu, I get this error :
Unable to open 'ioputs.c': Unable to read file 'vscode-remote://wsl+ubuntu/build/glibc-eX1tMB/glibc-2.31/libio/ioputs.c' (Error: Unable to resolve non-existing file 'vscode-remote://wsl+ubuntu/build/glibc-eX1tMB/glibc-2.31/libio/ioputs.c').
I get this error even with sourceFileMap defined below.
I can make debugging work if I make a symlink from "/build/glibc-eX1tMB" "/usr/src/glibc".
So it seems that the "sourceFileMap" does not work here.
I first add an issue for the C/C++ extension, but a comment mentioned that it could be an issue with vscode remote :
microsoft/vscode-cpptools#7389
The text was updated successfully, but these errors were encountered: