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. 4 1651
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.
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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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 =...
|
by: fj |
last post by:
Can you recommend some tools with debugging feature and IntelliScense?
-fj
|
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...
|
by: fj |
last post by:
Does anybody use tools for editing/debugging JavaScript?
Any tools with JavaScript that has intellisense?
Thanks
-fj
|
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...
|
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...
|
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.
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |