473,503 Members | 7,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Line numbering in VB.Net-- done behind the scenes for you?

Hi all,

In VB6 I used a 3rd party tool for line numbering my source code, to
help with debugging. However, in experimenting with VB .Net I've noticed
that my exceptions automatically provide line numbers, with no effort
required from me. Is this a standard offering in .Net, or is rolling your
own line numbers still the way to go? Also, my components at the moment are
being compiled in debug mode. Will line numbers still be available in my
exceptions when I build in release mode?-- just checking. Thanks.

-Jim
Nov 21 '05 #1
3 2914
Yup, VB.Net knows what line is what.
Check out this snip from the help file:
Displaying Line Numbers
You can turn on line numbering in your code. Line numbers are useful for, for
example, Navigating Code and Text.

Note Turning on line numbering does not mean that the document will print
with line numbers. For line numbers to print, you must select the Line numbers
check box in the Page Setup command on the File menu.
To display line numbers in code

1.. Select Options from the Tools menu.
2.. On the Text Editor node, choose All Languages.
3.. In the Display group box on the General node, click Line Numbers.
4.. To select this option on a programming language basis, select Line Numbers
in the appropriate folder. For example, to set line numbers for Visual Basic
..NET, select Line Numbers in the Display group box in the Basic node.

Gerald

"Jim Bancroft" <bo********@nowhere.com> wrote in message
news:eS****************@TK2MSFTNGP10.phx.gbl...
Hi all,

In VB6 I used a 3rd party tool for line numbering my source code, to
help with debugging. However, in experimenting with VB .Net I've noticed
that my exceptions automatically provide line numbers, with no effort
required from me. Is this a standard offering in .Net, or is rolling your
own line numbers still the way to go? Also, my components at the moment are
being compiled in debug mode. Will line numbers still be available in my
exceptions when I build in release mode?-- just checking. Thanks.

-Jim

Nov 21 '05 #2
* "Jim Bancroft" <bo********@nowhere.com> scripsit:
In VB6 I used a 3rd party tool for line numbering my source code, to
help with debugging. However, in experimenting with VB .Net I've noticed
that my exceptions automatically provide line numbers, with no effort
required from me. Is this a standard offering in .Net, or is rolling your
own line numbers still the way to go?


Yes, if you are running a debug build, no for release builds without PDB
file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Thanks!

-Jim
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
866
by: Tony Hedge | last post by:
Hello, This error does not occur on my machine, but does when I move to our development web server (Heard that before right?:-)) I am trying to execute this line in my code behind so that I...
0
861
by: stingray | last post by:
Hi I just used Visual C++ to compile a C code. I code a bunch of error messages (mostly syntax errors) How to get to these errors? Is there any automatic line numbering feature that I can use ...
2
1573
by: Peri | last post by:
Dear All, In VB 6.0 declaring this function and calling this functions works smoothly. But in VB.NET or ASP.NET (Code behind), I am getting an error in the line "HResult =...
0
1067
by: Chrysan | last post by:
I have create an asp.net(.aspx) page, with a PivotTable control. I noticed that, I can't reference it in my code-behind(.aspx.vb), because it doesn't has the line 'Protected WithEvents PivotTable1...
0
1312
by: Juan Romero | last post by:
Hey guys, Does anyone out there have a good method to do line numbering in a richtextbox control? This seemed simple at first glance, but It has proven to be a tough task. I want to create a...
2
1622
by: Jitdor | last post by:
Sorry for this rather naive question... Does anyone know of a way to enable vertical sequential line numbering in the code editor window? I've tried various settings in VC# and googling but...
0
981
by: =?Utf-8?B?TWF0dGhpYXNH?= | last post by:
Hello how can I implement a line numbering in a bound datagridview without using the increment of the Database?
2
1379
by: =?Utf-8?B?R3VzIENodWNo?= | last post by:
I can’t find the line numbering on/off in the option box. Am I missing something? Can any one help me. I’m using visual studio C# 2005 express edition thank You Gus
2
4818
by: wolverine2512 | last post by:
Hello .Net Wizards! I would like to seek your help on how to call javascript function from code behind of VB.net. I have javascript function named Openform() and i want to execute it on page load,...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.