473,734 Members | 2,806 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 2934
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********@now here.com> wrote in message
news:eS******** ********@TK2MSF TNGP10.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********@now here.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
875
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 can start to programatically build a word doc, but it fails everytime with an 'Access denied' message: Dim WordApp As New Word.Application
0
872
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 Thanks!
2
1587
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 = CreateReportOnRuntimeDS(Rs, svReportFile, svTTXFile, False, True)" saying that, "Object reference not set to an instance of an object." Can any one help me out to solve this problem. Module Report Declare Function CreateReportOnRuntimeDS Lib "p2smon.dll" (ByVal
0
1076
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 As OWC10.PivotTable' as creating other controls, liked Label, Button, ... Can anybody teach me how to reference the PivotTable control in asp.net code-behind? Thanks.
0
1336
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 control derived from the richtextbox control with a line numbering feature. Any thoughts welcomed.
2
1632
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 didn't find anything useful so far... Thanks in advance!
0
990
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
1390
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
4875
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, if not page.ispostback... I know how to do this on javascript (on load attribute on the body of html), what i want is to execute the javascript function through vb.net code behind... Thanks a lot....in advance.
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9449
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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 we have to send another system

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.