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
Debug error "Unable to '...': File not Found" #1546
Comments
I think this is how it is compiled. You can try specifying |
@pieandcakes How can I specify |
@Luberen The documentation is at the bottom of this article. I think your format will be:
|
Thank you for your answer.
Now it works fine :) |
Im not getting output.. I just tried C++ hello world.. I installed C/C++ extension. when I tried to debug using GDB it shows path error |
Windows : Please make sure if you have gdb.exe in your bin folder C:\MinGW\bin>mingw-get.exe install gdb After that modify your path in three files in vs code
This will resolve your compiling and debugging problem in windows. |
I'm having the same problem, trying the solution mentioned above for the source file map, but i'm on Debian linux distro based. INstead of C:\ what should i put? |
@WardenGnaw Do you know? |
I am using remote-ssh with an ubunto server. trying to use gdb to view a coredump file. I have this in my launch.json: (just added the soureFileMap now to fix the absolute path - does not help)
|
In my case, replacing ${fileDirname} , ${workspaceRoot} with ${workspaceFolder} resolved the issue. |
I tried to debug C++ file with gdb, but following error message is appeared.
Unable to 'main.cpp': File not found (file:///c/Users/.../main.cpp)
But I set the program path in
launch.json
file like this:"program": "C:/Users/.../main.exe"
I think it's because VS Code recognizes C: to c, but I couldn't find any solutions to fix this issue.
How can I set target program's path correctly?
This is my
tasks.json
file:The text was updated successfully, but these errors were encountered: