Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

breakpoints cannot be set

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
While trying to debug a program, once the breakpoint is set, I got the next message:
"One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program."
Does anybody know where this problem come from?

Thanks in advance
 
The block of code that you put the break point in is never hit. It may be within a comment or a #ifdef. Also when you place a break point as follows

fxn(a, <--- on this line
b,
c,
d)

you will get a message and the break point will move to the last line of the funciton call, in this case &quot;d)&quot;

Matt
 
thank you Matt,
but unfortunately it's not the case...

does anybody know another possible reason?

regards
 
When we've had this happen it's usually because the program database file (.PDB) is inconsistent with the executable. Make sure that the PDB is the same date/time as the executable and that under the 'general' options in the C++ project settings, debug info is set to 'Program Database'.

Temps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top