473,626 Members | 3,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2489
"Zytan" <zy**********@g mail.comwrote in message
news:11******** *************@r 30g2000prh.goog legroups.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**********@g mail.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
5998
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 on the Stored Proc, enter the parameters and the debugger stops on the first line and I can single
5
1867
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 and Debug Builds. How to avoid this ? Thank You rawCoder
7
21352
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
1067
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
1485
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 click one of these controls, the DataList replaces the EditTemplate with the ItemTemplate. I think this is because the method I wrote which performs the databinding is getting called, but I don't know why or where it is getting called from. It does...
3
2257
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 i can't see the server side code of it (<%%> ). Also in the debugger's Running documents window, i only see one branch of documents, descending from the internet explorer node. No trace there for the iis side of things..
9
4903
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 at these breakpoints but unfortunatly it does not.. I had allowed script debugging in both iis home directory and in internet explorer. Also i added everyone from active directory to be members of debugging group. Web Server is W2k sp4 and iis...
0
2006
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 of different screens down to a minimum, I'm trying to use the same Windows Forms for both browsing and for updating. This works fine for TextBoxes, but I'm running into problems with my DropDownLists (ComboBoxes).
12
1578
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 screen has an asp:label field "lblMessage" that will display error messages. Within the CodeBehind, we have a Sub that does some validation checks, and sets the value of lblMessage.text. There are several checks, and several different messages can...
0
8272
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
8205
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8644
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
8370
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
8514
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7206
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...
0
4094
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...
1
1817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1516
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.