By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,356 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,356 IT Pros & Developers. It's quick & easy.

Displaying line numbers in source files??

P: n/a
Is there an option for this

It woul certainly make debugging much easier

JE
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Jan E Andersen <an*******@discussions.microsoft.com> wrote:
Is there an option for this?

It woul certainly make debugging much easier!
const char* this_line = __LINE__;
JE

Schobi

--
Sp******@gmx.de is never read
I'm Schobi at suespammers dot org

"Sometimes compilers are so much more reasonable than people."
Scott Meyers
Nov 17 '05 #2

P: n/a
Jan E Andersen wrote:
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
Nov 17 '05 #3

P: n/a

"Jan E Andersen" <an*******@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
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
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.