Click to See Complete Forum and Search --> : One or More Breakpoint cannot be set ! what's wrong here ?


Hans Wedemeyer
April 25th, 1999, 04:26 PM
I swapped compilers, using the batch file trick, and copied all debug DLL's for VC6(sp2)

The project I just completed in VC5(sp3) worked and I could set breakpoints.

Now when I use VC6 I get the message

"One or more breakpoints could not be set, and have been disabled. Execution will stop at beginning of program"

So, I went back to VC5..... now it's the same and I can't set breakpoint at all, even on a simple thing like

int a=0;
a++; // can't set breakpoint here....!

I deleted all Debug directory files and did a "rebuild all", it did not cure the problem..

What am I doing wrong ?

TIA



http://www.flash.net/~hansw/carms.gif
My Web Site
http://www.flash.net/~hansw

Paul McKenzie
April 25th, 1999, 11:10 PM
Did you look at the Project / Settings / C++ tab? I bet that the "Debug Info" is set for "None", or the "Link" tab doesn't have the "Include Debug Info" checked.

Regards,

Paul McKenzie

Hans Wedemeyer
April 25th, 1999, 11:17 PM
That's it Thanks !

So VC6 switched off the debug info.... Thank you Microsoft !


http://www.flash.net/~hansw/carms.gif
My Web Site
http://www.flash.net/~hansw

bsmanoj
April 25th, 1999, 11:22 PM
Dear Hans,
This usually happens to me when ever I try to comment line which had a break point earlier and, then build it.
If the source code file is not part of project you may not be able set a active breakpoint.
you remove all break points and try setting new breakpoints at valid lines, and see.

If both these thing are not the cause, then project settings could be the the reason.
thanks
bsmanoj

Hans Wedemeyer
April 25th, 1999, 11:34 PM
OK I think it's VC6 that does something.
It's working now se other reply..

I know what you mean about setting break points on certain lines and it reports the same message.
Here that was not the case.

Thanks for your reply.

http://www.flash.net/~hansw/carms.gif
My Web Site
http://www.flash.net/~hansw