Visual C++ 2005 Express Edition - Breakpoints Ignored

Associate
Joined
30 Dec 2003
Posts
2,254
Hi,

Doing some University assignments using Visual C++ 2005 Express Edition and everything seems quite alright - Certainly an advance from Salford Plato that I was made to use last year.

My friend however has a problem - He says he downloaded and installed the application the same as me and has changed no settings other than to display line numbers however he is encountering a problem that I am not - His compiler seems to be ignoring breakpoints and continuing past them. This isn't helping him troubleshoot his programs thats for sure!!

Unfortunately I am unable to access his computer to have a look (And to be honest I'd only be clicking about with no founded idea as to why it is doing what its doing) so was hoping that you guys would be able to provide any ideas, common solutions, etc.

I look forward to hearing from you.

Cheers.

Dan.
 
You sometimes need to debug the release mode as well. e.g. in C++ debug mode, variables are initialized for you, in release they are not, and will point to garbage unless you explicitly initialize them.

To debug a release build, change the 'Debug Info' project setting to 'Program Database' under Project Settings / C++.
 
Back
Top Bottom