Debugger doesn't step through C++ code properly!
-
VS .NET 2003 When tracing C++ code in the debugger, it will always get out of sync and highlight the wrong line of code as you step through/in code. This makes it very hard to debug! Normally (under VC6 etc) this means that the code/source don't match, a rebuild all should probably be done. But this doesn't seem to help, and I'm 100% sure that the source I am trying to trace is the same source that was complied :) Anyone notice this problem and/or have a solution? -Troy PS: This happens even when building a simple dummy application, but only in source files that you add to the project.
-
VS .NET 2003 When tracing C++ code in the debugger, it will always get out of sync and highlight the wrong line of code as you step through/in code. This makes it very hard to debug! Normally (under VC6 etc) this means that the code/source don't match, a rebuild all should probably be done. But this doesn't seem to help, and I'm 100% sure that the source I am trying to trace is the same source that was complied :) Anyone notice this problem and/or have a solution? -Troy PS: This happens even when building a simple dummy application, but only in source files that you add to the project.
Hi Frannk, I had this problem too (plus many others... sadly)... After a long period trying to discover where the problem was I 've found that the source code has some weird CRLF somewhere. Try to open the sources with another editor (i.e. VS 6) and save them, then rebuild. I think this solved my problem, but I don't remember exactly if this was the solution since I did so many test and trail (you know how things go when you get desperate...) hope this helps