Is toggle header/source file processed by VisualGDB or is it VS?
We have multiple files with the same name in various subdirectories of the same project, and it looks like when you go from header to source, it pulls out the first source file listed in the project, instead of a correct one.
e.g.
dir1 ->file.h,file.cpp(which has #include “dir1/file.h”)
dir2-> file.h,file.cpp (which has #include “dir2/file.h”)
if you’d go from file.h in the dir2, file.cpp from dir1 would be shown.
Not sure if it’s your bug or a native one though.