Debugging in VC++2005
Hello and help... I know how to debug in Dev-C++, but when I set breakpoints in Visual C++ 2005 and press F5, they appear transparent and with a warning sign. A tool tip says- The breakpoint will not currently be hit. No symbols have been loaded for this document.
So, how to load those symbols? Is my configuration wrong or what? I really need debugger in this program, can't live without it!
Sounds like you're producing a release build rather than a debug build.
Nope, I'm compiling in Debug mode. The same happens with Release mode.
What happens when you press F10? When you do, it should take you to the first line of code in your application. What happens when you put a breakpoint on the next line below that.
This issue happens to me when I have a file that is not in the project loaded in visual studio and attempt to put the breakpoint in there. It is easy to do if you have multiple copies of the same source file lying around.
When I press F10:
It opens disassembler and jumps on "00401831 call __security_init_cookie (403E66h)"
I can put a breakpoint on the nextline, but, it doesn't work on source files. All the source files are in my project. How come other people don't have such problems? :(
Did you create the project(s) from scratch or import it from Dev-C++ or a previous VC++ version?
Check the Project Properties and look for the Debugging options to make sure that the generation of debugging information is on.
Firstly, I created a new project, then I added all the files by selecting Add->New Item on the project's folders menu. Debugging information generation is on, otherwise it would ask for it (as it did earlier).