473,386 Members | 1,758 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,386 software developers and data experts.

Editing code while debugger is running.

I cannot stand being unable to change the code while the debugger is
running.

Is there a way to do this?

thanks,
Zytan

Apr 26 '07 #1
5 2472
"Zytan" <zy**********@gmail.comwrote in message
news:11*********************@r30g2000prh.googlegro ups.com...
>I cannot stand being unable to change the code while the debugger is
running.

Is there a way to do this?
Upgrade to the paid version of Visual Studio?

Again, I haven't run Express recently enough to know for sure that this
feature is missing from it, but it wouldn't surprise me if it is. It does
exist in the paid version though.

Personally, I have never used "edit and continue" more than a handful of
times since I first saw it years ago. I do see the utility in having it,
but for me it doesn't come up often enough to justify paying extra for it.
But if it's important to you, you may have to get the paid version of Visual
Studio to get it.

Pete

Apr 27 '07 #2
Upgrade to the paid version of Visual Studio?

Ok, so the full version allows editing the code while the code is
running in the debugger? I want to be explicit, to make sure we're
talking about the same thing.

I am not looking to use Edit and Continue. I just want the code to
run, and when I notice something wrong, I'll go to that file, and
start typing, and let the program continue to run without pausing it.
This is the only way in which I want to edit code. Nothing more
complex, like Edit and Continue (which C# 2005 Express DOES have,
btw).

Zytan

Apr 27 '07 #3
On Fri, 27 Apr 2007 13:49:06 -0700, Zytan <zy**********@gmail.comwrote:
Ok, so the full version allows editing the code while the code is
running in the debugger? I want to be explicit, to make sure we're
talking about the same thing.

I am not looking to use Edit and Continue. I just want the code to
run, and when I notice something wrong, I'll go to that file, and
start typing, and let the program continue to run without pausing it.
Oh. No, I don't know if you can do that in any version of Visual Studio.
I don't think so, since VS (if I recall correctly) locks the source code
while the program is running, and if you edit it while it's paused assumes
you want to "edit and continue". Frankly, I think this is the correct
behavior...what happens if you continue the program, but either because of
an exception or because you broke into the debugger again the instruction
pointer winds up in the code you've been editing? While it would be
theoretically possible for the IDE to track your changes and correlate
them to the PDB, it seems to me that for nearly all programmers allowing
that would just lead to a huge amount of confusion (and way too many
support calls :) ).

Of course, you could just use a different editor and reload the source
file in Visual Studio when you're ready to rebuild. Then VS doesn't have
to deal with source code that doesn't match the running code.

Do you know of ANY development environment that does what you're asking
about here?

Pete
Apr 27 '07 #4
Oh. No, I don't know if you can do that in any version of Visual Studio.

You could in the old ones with VC++. I am so positive of this because
I find it frustrating every time it rejects my attempt to change, and
I just feel like that I should be able to, and I'm sure this came from
my VC++ experience.
I don't think so, since VS (if I recall correctly) locks the source code
while the program is running, and if you edit it while it's paused assumes
you want to "edit and continue". Frankly, I think this is the correct
behavior...what happens if you continue the program, but either because of
an exception or because you broke into the debugger again the instruction
pointer winds up in the code you've been editing?
I think this may even happen, but I don't care about it since I know
that I'm changing the code. But I think it makes a good effort to
track what has happened, anyway, IIRC.
While it would be
theoretically possible for the IDE to track your changes and correlate
them to the PDB, it seems to me that for nearly all programmers allowing
that would just lead to a huge amount of confusion (and way too many
support calls :) ).
Maybe they removed this, and that was why!!
Of course, you could just use a different editor and reload the source
file in Visual Studio when you're ready to rebuild. Then VS doesn't have
to deal with source code that doesn't match the running code.
I'd run the risk of editing and the IDE not reloading the newest file,
so I'll pass, but thanks for the idea.
Do you know of ANY development environment that does what you're asking
about here?
Older VC++ post VC++6, I think, maybe even for VC6?

Zytan

Apr 28 '07 #5
Do you know of ANY development environment that does what you're asking
about here?

Older VC++ post VC++6, I think, maybe even for VC6?
Yes, this is definitely the case.

Zytan
May 4 '07 #6

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

Similar topics

4
by: Steve Meier | last post by:
Environment: SQLServer Developer Edition on Machine A Enterprise Manager running on remote machine B Both machines are in the same subnet I open Enterprise Mgr on Machine A, right click...
5
by: rawCoder | last post by:
On running a console app from Windows Server 2003 with Debugger.Break() makes an Abort Retry Ignore popup appear stating that a user defined breakpoint is reached. Works the same in both Release...
7
by: Wysiwyg | last post by:
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill
4
by: Mr. x | last post by:
How can I redirect any error that occurs in an html page to a debugger. (For some reason, this option is disabled on my computer - I want to enable it again). Thanks :)
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...
3
by: Rea | last post by:
Hey eb After installing microsoft's script debugger, I configured my default web site and internet explorer to enable script debugging. But when stepping into debugging mode in some asp page...
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
0
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number...
12
by: DanG | last post by:
We're running Visual Studio 2003 version 1.1.4322 SP1 to build a web application. Something strange started happening this morning on one of my co- workers' Development Environments. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
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
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,...

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.