Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem on run time
Message
From
16/08/2000 04:16:03
 
 
General information
Forum:
Visual C++
Category:
Other
Miscellaneous
Thread ID:
00404917
Message ID:
00405375
Views:
19
The following should help you isolate the problem if you are using Visual C++. Load your workspace and open the source code that contains the main() function body. Press your right mouse button on the first line of your function (I believe this is an integer declaration) and select Insert/Remove breakpoint from the context menu. A little red circle should now appear in the left margin next to your line of code. Select Build->Start Debug->Go to start the Visual C++ debugger, when this happens execution will stop at your breakpoint; you can now use the F10 and F11 keys to step through your code. You will also notice that two tabbed windows are present, the first one with the Auto page displays memory/objects in the scope of the functions you are stepping through. The other window is the watch window, you can drag/drop/enter expressions and variables to watch checking for uninitialised memory etc.

In summary using these simple debugging techniques will allow you isolate where you program is failing.

HTH
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform