Click to See Complete Forum and Search --> : Debug break point in VC 5.0


Will Rothwell
May 31st, 1999, 03:29 AM
Hi,

I am using VC 5.0. I encounter an annoying problem when debugging my program. I set break point by 'F9'. Most of the time it works and I can set break point on any executable statement I like. However, it sometime gives me an error in a dialog box when I start debug. The dialog says something like cannot set break point and program start at the beginning. It turns my break point from a brown dot to a white filled hollow dot.

Can someone tell me why I can't set 'that' particular break point. There must be rules but I don't know where to find. Please help.

Will

Pallavi
May 31st, 1999, 03:50 AM
Are U sure U are in debug mode when U encounter this problem?.

Will Rothwell
May 31st, 1999, 07:50 AM
Sadly so, yes. As I said, it does not always come (the dialog) but when it does, sometime I can get rid of it by put the break point in another valid line. Does it sound like a misconfiguration or bug of VC 5.0 ?

Will

Yogen M
May 31st, 1999, 11:29 AM
This happens because the debugger cannot find the machine-code equivalent
of ur source code. See if 'Rebuild all' heps

Safai Ma
May 31st, 1999, 01:03 PM
If you are debugging a DLL, make sure it is in the "Project Settings" -> "Debug" -> Category "Additional DLLs".

-Safai

Paul McKenzie
May 31st, 1999, 01:39 PM
Here are a few possibilities:

- You're running the release version with no debug info.

- Source is out of date. Lines have been moved/erased/added, and you didn't do a recompile.

- Optimizations have been set on. When debugging optimized code, some lines get moved or eliminated by the compiler.

- Debug mode was not on for the compiled module. This could mean the debug settings were not set correctly in the Project | Settings.

- Source module is part of an external library (i.e. DLL or static LIB file) that was built with no debug info.

Regards,

Paul McKenzie