List Info

Thread: Debugging: edit and continue, HOW?




Debugging: edit and continue, HOW?
user name
2006-10-18 12:07:09
Hi there,
Google searches for the last 15 minutes comes up with pages
which
happily sing in harmony and joy, claiming edit &
continue is back with
vs.net 2005. Being a complete dumb, I could not figure out
the way it
works for asp.net.
In vs.net 2005 I have set a breakpoint in a web project, and
changed to
code in the method (a button click handler actually) . The
result was a
dialog telling me the code that is being debugged has
changed.
What I'd like to have is the mechanism I have in Eclipse and
Java (this
is certainly not a flame war invitation, please stay calm.):
I get into
a method, see that I have written something stupid, but I
have just
spend my precious time to fill in the fields in the UI, and
in case i
want to change the method, I have to stop debugging, change
code,
compile, start app, perform all user functionality till I
get to the
point I was before (think about a wizard with bulky pages)
etc etc.  In
Eclipse, I just change the method, press save, and the
debugger goes
back to the beginning of the stack, with my precious input
still ready.
This is a huge time saver for me in development, and I'd
love to use it
in vs.net 2005.
Any ideas?

Best Regards
Seref Arikan



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/480 - Release
Date: 10/17/2006

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Debugging: edit and continue, HOW?
user name
2006-10-18 12:43:10
Here you go

http://msdn2.microsoft.com/en-us/library/zxfz3z3h.aspx

Prepare to spend a bit more than 15 minutes reading through
it.



> -----Original Message-----
> From: Discussion of advanced .NET topics.
[mailto:ADVANCED-
> DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Seref Arikan
> Sent: Wednesday, October 18, 2006 7:07 AM
> To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] Debugging: edit and
continue, HOW?
>
> Hi there,
> Google searches for the last 15 minutes comes up with
pages which
> happily sing in harmony and joy, claiming edit &
continue is back with
> vs.net 2005. Being a complete dumb, I could not figure
out the way it
> works for asp.net.
> In vs.net 2005 I have set a breakpoint in a web
project, and changed to
> code in the method (a button click handler actually) .
The result was a
> dialog telling me the code that is being debugged has
changed.
> What I'd like to have is the mechanism I have in
Eclipse and Java (this
> is certainly not a flame war invitation, please stay
calm.): I get into
> a method, see that I have written something stupid, but
I have just
> spend my precious time to fill in the fields in the UI,
and in case i
> want to change the method, I have to stop debugging,
change code,
> compile, start app, perform all user functionality till
I get to the
> point I was before (think about a wizard with bulky
pages) etc etc.  In
> Eclipse, I just change the method, press save, and the
debugger goes
> back to the beginning of the stack, with my precious
input still ready.
> This is a huge time saver for me in development, and
I'd love to use it
> in vs.net 2005.
> Any ideas?
>
> Best Regards
> Seref Arikan
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.4/480 -
Release Date:
> 10/17/2006
>
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Debugging: edit and continue, HOW?
user name
2006-10-18 12:50:36
> Google searches for the last 15 minutes comes up with
pages
> which happily sing in harmony and joy, claiming edit
&
> continue is back with vs.net 2005. Being a complete
dumb, I
> could not figure out the way it works for asp.net.
> In vs.net 2005 I have set a breakpoint in a web
project, and
> changed to code in the method (a button click handler
> actually) . The result was a dialog telling me the code
that
> is being debugged has changed.

        as far as I know, E&C isn't available in asp.net
scenario's, only in non-ASP.NET related projects, this
because it's too
cumbersome to restart the webprocess with the same state as
it depends on IIS.

> What I'd like to have is the mechanism I have in
Eclipse and
> Java (this is certainly not a flame war invitation,
please
> stay calm.): I get into a method, see that I have
written
> something stupid, but I have just spend my precious
time to
> fill in the fields in the UI, and in case i want to
change
> the method, I have to stop debugging, change code,
compile,
> start app, perform all user functionality till I get to
the
> point I was before (think about a wizard with bulky
pages)
> etc etc.  In Eclipse, I just change the method, press
save,
> and the debugger goes back to the beginning of the
stack,
> with my precious input still ready.
> This is a huge time saver for me in development, and
I'd love
> to use it in vs.net 2005.
> Any ideas?

        Well, one idea could be to drop E&C requiring
coding styles. It's that simple. E&C propagates sloppy
coding 'because you can
fix it during debugging anyway', forgetting that debugging
is costly and time consuming and should be avoided until the
only way to
determine what causes a bug is to start the debugger,
carefully placing breakpoints etc.

        I never need E&C and still am productive in
writing software. It's not that I do something special, it's
just that most of
the time, thinking for 1 minute saves you more than 5
minutes of debugging. For kicks, read my article why E&C
isn't solving
anything and how to debug software properly: http://weblogs.asp.net/fbouma/archive/2003/08/01/2221
1.aspx

                FB



===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Debugging: edit and continue, HOW?
user name
2006-10-18 13:15:04
Hi Seref,

Click the pause debug button, then you can edit the sources.
I must admit the web application project is great, but its
programmer-debugging-experience(c) is not quite near to the
website
project's :(

Note: it works for me, but not for a colleague of mine, but
that may
be due to the fact he has not installed the architect
version of
vs2005...

HTH
// Ryan

On 10/18/06, Seref Arikan <serefarikankurumsalteknoloji.com> wrote:
> Hi there,
> Google searches for the last 15 minutes comes up with
pages which
> happily sing in harmony and joy, claiming edit &
continue is back with
> vs.net 2005. Being a complete dumb, I could not figure
out the way it
> works for asp.net.
> In vs.net 2005 I have set a breakpoint in a web
project, and changed to
> code in the method (a button click handler actually) .
The result was a
> dialog telling me the code that is being debugged has
changed.
> What I'd like to have is the mechanism I have in
Eclipse and Java (this
> is certainly not a flame war invitation, please stay
calm.): I get into
> a method, see that I have written something stupid, but
I have just
> spend my precious time to fill in the fields in the UI,
and in case i
> want to change the method, I have to stop debugging,
change code,
> compile, start app, perform all user functionality till
I get to the
> point I was before (think about a wizard with bulky
pages) etc etc.  In
> Eclipse, I just change the method, press save, and the
debugger goes
> back to the beginning of the stack, with my precious
input still ready.
> This is a huge time saver for me in development, and
I'd love to use it
> in vs.net 2005.
> Any ideas?
>
> Best Regards
> Seref Arikan
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.4/480 -
Release Date: 10/17/2006
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )