Solved

Debugging in MS VC++ 4.0

Posted on 1997-02-21
1
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

751 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