Displaying line numbers in source files??

  • Thread starter Thread starter Guest
  • Start date Start date
Jan E Andersen said:
Is there an option for this?

It woul certainly make debugging much easier!

const char* this_line = __LINE__;


Schobi

--
(e-mail address removed) is never read
I'm Schobi at suespammers dot org

"Sometimes compilers are so much more reasonable than people."
Scott Meyers
 
Jan said:
Is there an option for this?

It woul certainly make debugging much easier!

How would it make debugging easier?

The IDE always displays the current line number in the lower right corner,
and you can jump directly to any line by pressing Ctrl+G and typing the line
number. You can go directly to the line of an error by double-clicking on
the error message in the output window.

What more benefit would displaying lines numbers provide?

-cd
 
Jan E Andersen said:
Is there an option for this?

It woul certainly make debugging much easier!

JE

Yes there is an option for this (at least in Visual Studio,Net 2003, but I
think it was in the 2002 version as well).

Open Tools menu and select Options to open the Options dialog box.

In the Options tree control on the left side, open the Text Editor node and
navigate to the type of file you want to change. (Since this message is in
the C++ group, C++ is probably your choice here.). Then select the General
node under that file type.

In the dialog on the right, you should see a section called Display and the
first checkbox in this section is the Line Number checkbox. Click the box to
put a check there and click OK. At that point you should have line numbers
in the text editor for the type of file you selected.

Repeat the above for any other file types you wish to have line numbers for.

I hope this was helpful for you.

Joseph Van Valen
 
Back
Top