473,385 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Editing code while debugging

Ian
Good day all,
As a dotnet newbie there are a couple of things I am hoping some one can
help me with.
(1) In vb6 and vba I can F8 and step through a program. Whilst stepping
through I can edit the code easily whilst the program is running. With dotnet
as soon as I start the code screen comes up read only ..... Is there a way I
can edit like in VBA and VB6
(2) In VB6 and VBA I can use on error goto 0 etc to break on an error etc.
In dot net the code I am debugging uses the try command etc. If an error
occurs it is almost impossible for me to find the line that caused the error.
Is there an easy way to go back to the line that caused the error ?

Thanks for your help
Ian.
Oct 12 '05 #1
4 1650
CT
Ian,

Inline please.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Ian" <Ia*@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Good day all,
As a dotnet newbie there are a couple of things I am hoping some one can
help me with.
(1) In vb6 and vba I can F8 and step through a program. Whilst stepping
through I can edit the code easily whilst the program is running. With
dotnet
as soon as I start the code screen comes up read only ..... Is there a way
I
can edit like in VBA and VB6
Edit and Continue (E&C) is not supported in VS .NET 1.x, but it is in VS
..NET 2.0 to be released on November 7.
(2) In VB6 and VBA I can use on error goto 0 etc to break on an error etc.
In dot net the code I am debugging uses the try command etc. If an error
occurs it is almost impossible for me to find the line that caused the
error.
Is there an easy way to go back to the line that caused the error ?
You need to inspect the exception object in your Catch block. In addition,
are you running in Debug mode, i.e. run the application by pressing F5 and
not CTRL+F5.
Thanks for your help
Ian.

Oct 13 '05 #2
My experience in VBA is that you can't really edit the code as much as change
variable data. This you can do in .Net, very similarly to the method in VBA.
"CT" wrote:
Ian,

Inline please.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Ian" <Ia*@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Good day all,
As a dotnet newbie there are a couple of things I am hoping some one can
help me with.
(1) In vb6 and vba I can F8 and step through a program. Whilst stepping
through I can edit the code easily whilst the program is running. With
dotnet
as soon as I start the code screen comes up read only ..... Is there a way
I
can edit like in VBA and VB6


Edit and Continue (E&C) is not supported in VS .NET 1.x, but it is in VS
..NET 2.0 to be released on November 7.
(2) In VB6 and VBA I can use on error goto 0 etc to break on an error etc.
In dot net the code I am debugging uses the try command etc. If an error
occurs it is almost impossible for me to find the line that caused the
error.
Is there an easy way to go back to the line that caused the error ?


You need to inspect the exception object in your Catch block. In addition,
are you running in Debug mode, i.e. run the application by pressing F5 and
not CTRL+F5.

Thanks for your help
Ian.


Oct 13 '05 #3
Ian
I have had a look at the exception object and I can see via the locals window
some useful information. However when the catch try is three or four back in
the stack ( ie the click ok calls a subroutine that calls a function etc )
then the information on the error is lost. Is there a smart way of see what
happened or do you need a "catch" in every sub and function ?

Thanks
Ian

"CT" wrote:
Ian,

Inline please.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Ian" <Ia*@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Good day all,
As a dotnet newbie there are a couple of things I am hoping some one can
help me with.
(1) In vb6 and vba I can F8 and step through a program. Whilst stepping
through I can edit the code easily whilst the program is running. With
dotnet
as soon as I start the code screen comes up read only ..... Is there a way
I
can edit like in VBA and VB6


Edit and Continue (E&C) is not supported in VS .NET 1.x, but it is in VS
..NET 2.0 to be released on November 7.
(2) In VB6 and VBA I can use on error goto 0 etc to break on an error etc.
In dot net the code I am debugging uses the try command etc. If an error
occurs it is almost impossible for me to find the line that caused the
error.
Is there an easy way to go back to the line that caused the error ?


You need to inspect the exception object in your Catch block. In addition,
are you running in Debug mode, i.e. run the application by pressing F5 and
not CTRL+F5.

Thanks for your help
Ian.


Oct 14 '05 #4
CT
Ian,

Exception chaining is the term for this. Take a look at the InnerException
property, which holds the previous exception thrown.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Ian" <Ia*@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com...
I have had a look at the exception object and I can see via the locals
window
some useful information. However when the catch try is three or four back
in
the stack ( ie the click ok calls a subroutine that calls a function etc )
then the information on the error is lost. Is there a smart way of see
what
happened or do you need a "catch" in every sub and function ?

Thanks
Ian

"CT" wrote:
Ian,

Inline please.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Ian" <Ia*@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
> Good day all,
> As a dotnet newbie there are a couple of things I am hoping some one
> can
> help me with.
> (1) In vb6 and vba I can F8 and step through a program. Whilst stepping
> through I can edit the code easily whilst the program is running. With
> dotnet
> as soon as I start the code screen comes up read only ..... Is there a
> way
> I
> can edit like in VBA and VB6


Edit and Continue (E&C) is not supported in VS .NET 1.x, but it is in VS
..NET 2.0 to be released on November 7.
> (2) In VB6 and VBA I can use on error goto 0 etc to break on an error
> etc.
> In dot net the code I am debugging uses the try command etc. If an
> error
> occurs it is almost impossible for me to find the line that caused the
> error.
> Is there an easy way to go back to the line that caused the error ?


You need to inspect the exception object in your Catch block. In
addition,
are you running in Debug mode, i.e. run the application by pressing F5
and
not CTRL+F5.
>
> Thanks for your help
> Ian.


Oct 15 '05 #5

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

Similar topics

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
1
by: StvB | last post by:
Hi, I just started implementing adding a new node to an existing tree. In these statements, I add the node itself and attach the "end of editing" event handler to the event -------- id =...
1
by: fj | last post by:
Can you recommend some tools with debugging feature and IntelliScense? -fj
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
5
by: fj | last post by:
Does anybody use tools for editing/debugging JavaScript? Any tools with JavaScript that has intellisense? Thanks -fj
10
by: Nathan Sokalski | last post by:
I have a DataList control with an EditTemplate. Three of the controls in this template include a Calendar, a Button with CommandName="update", and a Button with CommandName="cancel". Whenever I...
6
by: Bruce A. Julseth | last post by:
When debugging a C# application, I can make changes to the code and restart. Is there a way to do this in VB.NET? Right now, I have to kill the application, make the change, then rerun it. It...
3
by: Ben | last post by:
anyone know if there is a way to get VS to enable editing codes in debug mode? 6.0 supported this feature and it's the best key selling point. I just don't know why it's not avaliable. Thanks.
4
by: Ian | last post by:
Good day all, As a dotnet newbie there are a couple of things I am hoping some one can help me with. (1) In vb6 and vba I can F8 and step through a program. Whilst stepping through I can edit the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.