Click to See Complete Forum and Search --> : Q: MFC doesn't like breakpoints?
Jon Funk
April 20th, 1999, 03:02 PM
Having set a breakpoint on an executable line of code. I get the error message listed below when starting to run in debug mode.
Can anyone tell me what's going wrong here?
One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program.
Michael Decker
April 20th, 1999, 03:23 PM
You're in release mode, not debug...
Rudolf
April 21st, 1999, 01:36 AM
I get this mistakes from time to time as well in debug mode. Normally it happens when I put the breakpoints at places where nothing happens (for example a declaration, a line with only a '{' ...).
If You put it at parts of the code that are never called it can happen as well - in Your case You could check with a TRACE, whether this part is called at all...
Jon Funk
April 21st, 1999, 09:30 AM
I am running in Debug mode. I removed all breakpoints and tried to just run to cursor. The debugger starts up in D:\...\VC\crt\src\CRT0.src in the WinMainCRTStartup function. I can never step to the point where the cursor is in MY code. Any suggestions?
Paul McKenzie
April 21st, 1999, 10:15 AM
Go to the project settings and check the Win32-Debug C++ settings. Make sure that Debug Info is at least set for "Program Database". Also, make sure that the Link settings is set for "Include Debug Info".
Contrary to popular belief, debug build does not necessarily mean "include debug info". You can mix and match release build that includes debug info, debug build without debug info, etc. If you couldn't do this, the Project settings wouldn't have that the "Debug Info" dropdown combo in the C/C++ settings.
Regards,
Paul McKenzie
Jon Funk
April 21st, 1999, 04:31 PM
That did it! Thank you! =)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.