In short, all compiles and runs but breakpoints not getting hit. I am using VC++ 2022. I am following this tutorial.
Invoking: scons -j4 target=template_debug dev_build=yes debug_symbols=yes
All DLLs and lib complied with dev.debug:
The launch.vs.json
{
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "default",
"project": "C:\\dev\\my\\godot\\Godot_v4.2.1-stable_win64.exe\\Godot_v4.2.1-stable_win64_console.exe",
"name": "Godot Game",
"args": [
"--path",
"C:\\dev\\my\\godot\\godotcpp\\test1\\godot-cpp-template\\demo"
]
},
{
"type": "default",
"project": "C:\\dev\\my\\godot\\Godot_v4.2.1-stable_win64.exe\\Godot_v4.2.1-stable_win64_console.exe",
"name": "Godot Editor",
"args": [
"-e C:\\dev\\my\\godot\\godotcpp\\test1\\godot-cpp-template\\demo\\project.godot"
]
}
]
}
And do start the scene from the editor. The breakpoint doesn't get hit and looks like this:
Update
Here is the pdb file:
Looks like total mess, what am I doing wrong?
](https://i.stack.imgur.com/pIIZI.png)


It looks like you are missing the program database (PDB files). You have to invoke the linker with the /DEBUG option. Since you are using SCons - you have the edit your configuration file and add the /DEBUG linker options.