In Visual Studio, I'm afraid you cannot, as the debug executable does not contain a source. Visual Studio generates pdb files that contain only a mapping between binary and source file names and line numbers, but you still need the source code. This may be different from gcc, which I think integrates the source into binaries.
tibur source share