You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup a project and the Bazel build works well. Bazel run also works.
I can create a debug build with the option '-c dbg' and attach to the executing process.
However, whenever I try to debug code I have written, VS code does not find the .cs file.
My assumption is, that I need to tell the compiler where the source code can be found.
I have had no success with 'sourceFileMap' in the launch.json file.
Maybe we need to specific the 'GenerateFullPaths' property for the compiler?
Did anybody manage to get this working?
Thanks for any pointers.
The text was updated successfully, but these errors were encountered:
andwak
changed the title
Is it possible to debug is VS Code using Dev Containers?
Is it possible to debug in VS Code using Dev Containers?
Apr 11, 2022
Bazel dotnet rules create a .param file containing the parameters for the csc.exe compilation call.
I no longer suspect this is related to /fullpaths (GenerateFullPaths) configurations (I added this property in a test branch).
When VS Code prompts to create the "file that is not found" and I manually replace this file with the source code file content, I can then debug. Obviously this is not a solution, just part of my analysis.
I then started to investigate the .pdb files that are created. I saw that the pdb contains a section "document" and this points to a folder where the assembly is executed. For example:
Hi,
I have setup a project and the Bazel build works well. Bazel run also works.
I can create a debug build with the option '-c dbg' and attach to the executing process.
However, whenever I try to debug code I have written, VS code does not find the .cs file.
My assumption is, that I need to tell the compiler where the source code can be found.
I have had no success with 'sourceFileMap' in the launch.json file.
Maybe we need to specific the 'GenerateFullPaths' property for the compiler?
Did anybody manage to get this working?
Thanks for any pointers.
The text was updated successfully, but these errors were encountered: