Solved

Debugging in MS VC++ 4.0

Posted on 1997-02-21
1
200 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

632 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