By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

Debugging problem with VC++

P: n/a
I am trying to debug a C++ program using Visual C++ 6.0. After setting
my breakpoints and starting the debug with F5, I get the error message

"One or more breakpoints cannot be set and have been disabled.
Execution will stop at the beginning of the program."

even though it used to work before. Is there some setting I need to
change, perhaps?
Thanks,

Marco
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Marco wrote:
I am trying to debug a C++ program using Visual C++ 6.0. After setting
my breakpoints and starting the debug with F5, I [...]


Wrong newsgroup. Try microsoft.public.vc.ide_general
Jul 22 '05 #2

P: n/a
Marco wrote:
I am trying to debug a C++ program using Visual C++ 6.0. After setting
my breakpoints and starting the debug with F5, I get the error message

"One or more breakpoints cannot be set and have been disabled.
Execution will stop at the beginning of the program."

even though it used to work before. Is there some setting I need to
change, perhaps?


You need to write more programmer tests, to avoid the need to debug, and to
provide a rapid platform when you do.

In this situation, delete your NCB, PDB and PCH files, close all your source
files, restart your editor, rebuild everything, and tap <F11>. Control flow
will drop into main().

You are now looking at the source your debugger thinks compiled to produce
your program. Refreshing all those intermediate files, including the files
the editor thinks should be your source, improves the odds you are looking
at the real thing.

If you put a breakpoint into a templated function (or "method"), between two
debugger runs the compiler might think the breakpoints belong only to one
instance, and it will announce it is disabling other instances.

Your question will get better answers on a newsgroup that covers your
debugger. This newsgroup is only qualified to provide platform-neutral
answers to questions about the C++ language itself.

Read this to learn how to post:

http://www.slack.net/~shiva/welcome.txt

Use this to research your question and the names of newsgroup where it's on
topic:

http://groups.google.com

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.