Solved

Debugging in MS VC++ 4.0

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

856 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