code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

Debugging in WSL raises popup "Unable to open ..." for built in c++ files

Open dzvancuks opened this issue 5 years ago • 1 comments

When I'm working in WSL (Win10+Ubuntu 16.04) and there is an error, debugger always pops window with message like: Unable to open 'basic_string.tcc': Unable to read file (Error: File not found (vscode-remote://wsl+ubuntu-16.04/build/gcc-5-uaBN8O/gcc-5-5.4.0/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc)).

How can I map paths to specify where to look for gcc sources?

dzvancuks avatar Dec 30 '19 13:12 dzvancuks

there is currently no way to specify map paths yet. It might be possible with the C/C++ extension though. And by the looks of it it might probably be possible to install/create some extension providing support for WSL paths in vscode too which would make code-debug also find the files.

WebFreak001 avatar Dec 30 '19 15:12 WebFreak001