debug????

This is a discussion on debug???? within the C++ Programming forums, part of the General Programming Boards category; Here is a quick question about the debugger option on visual C++. When I step through the code with the ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Question debug????

    Here is a quick question about the debugger option on visual C++. When I step through the code with the debugger, when I hit a cout line, it steps into a bunch of bs code and I cannot step out of it, I have to restart debugger. Is there any other way to avoid lines like cout and others that take me to bogus code other than using F11(Step In) to get into functions and step through code and when I get to a cout line, remember to use F10(Step Over)???? What actually happens is when I get to a cout line, a window pops up asking for "Please enter path for ostream.cpp.". I end up having to hit cancel and it takes me to a bunch of bogus code. Any suggestions?????

    Thanks
    Kendal

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Rightclick a line you are interested in and set a breakpoint....

    The instead of Step Into, clisck Run for the debug submenu.... execution will run as normal and pause at the point you want

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,659
    Thats strange, step-over should work for you without asking for code locations.
    You could install all the C-runtime code from the VC++ setup (if you have the disk space), that way if the debugger takes you into something you don't care about, you can just step-out and keep on truck'n. Otherwise, you'll have to either use breakpoints as Fordy suggested or put your cursor on the line you want be at, and hit "Run to Cursor" (Cntrl-F10). Or a combo of all these techniques - what I do.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary not built with debug info - why?
    By ulillillia in forum C Programming
    Replies: 15
    Last Post: 12-11-2008, 12:37 AM
  2. makefiles - debug & release?
    By cpjust in forum C Programming
    Replies: 6
    Last Post: 10-26-2007, 04:00 PM
  3. Debug --> Exceptions in Visual Studio 2005
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 08-10-2007, 02:12 AM
  4. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM
  5. Ask about Debug Assert Failed
    By ooosawaddee3 in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2002, 11:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21