Visual C++ Editor

This is a discussion on Visual C++ Editor within the Windows Programming forums, part of the Platform Specific Boards category; I am using Visual C++ and have found that it is difficult to debug a programm when I can't see ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    59

    Visual C++ Editor

    I am using Visual C++ and have found that it is difficult to debug a programm when I can't see the line of the file either on the left hand side of the editor window or current line the cursor is on at the botton of the screen in a status bar. Can anyone tell me how I could enable these?

    Thanks

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    I don't understand. When I drop into the debugger, the window that normally has the file view/class view etc. disappears and what is normally the edit window extends the whole width of the screen and shows me the source I am debugging. This is not some special arrangement, it has always done that!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    59

    Hmmm...

    What I am trying to figure out is how to display line numbers. For example: When there is an error in my code, the debugger will tell me the line number it is on but unless I count line numbers down I have no way of knowing which line it is. Is there some way I can check the current line that the cursor is on or display the line number next to each line of code? Like in Microsoft Word, on the bottom of the screen on the status bar it tells you what the line number is that I am currently typing on.

    Does that help?

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    If you are editing, there is a line/column number down in the bottom right of the screen, or at least, there is on mine.

    *** EDIT ***

    I just tried, it is still there when the debugger is active.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,702
    You can also perform: Edit->Goto or Cntrl-G, which will allow you to enter a line number to go to.
    You can usually double click on anything in the ouput window and it will take you to the offending line.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 09:57 AM

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