Solved

Debugging in MS VC++ 4.0

Posted on 1997-02-21
1
195 Views
Last Modified: 2010-04-10
Does anyone know how to get the MS Visual C++ 4.0 Debugger working?  I set breakpoints in my code (not 'visual' code) and when I go to Debug->Go, the program does not stop at the breakpoints.  I believe I have set the compile options correctly, but I am not sure.  Can anyone at all help me out?
0
Comment
Question by:blh
1 Comment
 

Accepted Solution

by:
noddy earned 10 total points
ID: 1161990
First, upgrade to v4.2. v4.0 has a number of bugs that make the IDE almost unusable. A list of bugs present and fixed in v4.2 is available from the Microsoft web site. There aren't any settings you could possibly set which would stop the debugger stopping at a properly set breakpoint. If it can't set a breakpoint for any reason, it will tell you why and then disable the breakpoint.

Meanwhile, to force a breakpoint, compile in a hardware int 3 instruction to the place you want to stop. Use:-

__asm int 3;

Then Debug->Go. You can then step from that point. You might find that breakpoints then start working.

Definately get 4.2, though

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now