Solved

Debugging in MS VC++ 4.0

Posted on 1997-02-21
1
194 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

772 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

10 Experts available now in Live!

Get 1:1 Help Now