473,480 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VS2005 Executes Code After I Hit Stop

Hey All,

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after whatever line
I was on when I hit stop) and I can check the database and see that
rows were inserted/updated. As you can imagine, this is quite
frustrating as the whole reason I hit stop is that I *didn't* want to
continue to do work against the db.

Anyone else have this problem? What's a coder to do?

Jun 21 '06 #1
6 1200
Hello,

When you debug a web project I assume your IE launches. Do you close the IE
as well?

chanmm

<oh******@hotmail.com> wrote in message
news:11*********************@y41g2000cwy.googlegro ups.com...
Hey All,

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after whatever line
I was on when I hit stop) and I can check the database and see that
rows were inserted/updated. As you can imagine, this is quite
frustrating as the whole reason I hit stop is that I *didn't* want to
continue to do work against the db.

Anyone else have this problem? What's a coder to do?

Jun 21 '06 #2
I think this happens because VS attaches to the aspnet_wp.exe process,
but since it didn't create it (IIS did), it won't terminate it. You
wouldn't want it to either, if you are remoted debugging an actual
webserver, for example.

What I would do is use the Set Next Statement to move the statement to
the block of code after the database calls (or possibly just to the
exit of your method).

Andy
oh******@hotmail.com wrote:
Hey All,

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after whatever line
I was on when I hit stop) and I can check the database and see that
rows were inserted/updated. As you can imagine, this is quite
frustrating as the whole reason I hit stop is that I *didn't* want to
continue to do work against the db.

Anyone else have this problem? What's a coder to do?


Jun 21 '06 #3
When you hit stop, the IDE closes IE. If you close IE manually the
debugger detaches and stops.

chanmm wrote:
Hello,

When you debug a web project I assume your IE launches. Do you close the IE
as well?

chanmm

<oh******@hotmail.com> wrote in message
news:11*********************@y41g2000cwy.googlegro ups.com...
Hey All,

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after whatever line
I was on when I hit stop) and I can check the database and see that
rows were inserted/updated. As you can imagine, this is quite
frustrating as the whole reason I hit stop is that I *didn't* want to
continue to do work against the db.

Anyone else have this problem? What's a coder to do?


Jun 21 '06 #4
What you say makes sense, however, this problem *never* happened in
VS2003 and to be honest it only started doing this last week (several
months after I started using VS2005) so this is definitely not the
IDE's normal behavior.
Andy wrote:
I think this happens because VS attaches to the aspnet_wp.exe process,
but since it didn't create it (IIS did), it won't terminate it. You
wouldn't want it to either, if you are remoted debugging an actual
webserver, for example.

What I would do is use the Set Next Statement to move the statement to
the block of code after the database calls (or possibly just to the
exit of your method).

Andy
oh******@hotmail.com wrote:
Hey All,

In my website projects I can set a breakpoint, run the app, the
breakpoint gets hit, and I can step through or check some variables or
what not, and if I hit stop it appears that the rest of the method (and
any calling method) continues to execute. I know this because there are
sql calls being made (though they are on lines well after whatever line
I was on when I hit stop) and I can check the database and see that
rows were inserted/updated. As you can imagine, this is quite
frustrating as the whole reason I hit stop is that I *didn't* want to
continue to do work against the db.

Anyone else have this problem? What's a coder to do?


Jun 21 '06 #5
oh******@hotmail.com wrote:
What you say makes sense, however, this problem *never* happened in
VS2003 and to be honest it only started doing this last week (several
months after I started using VS2005) so this is definitely not the
IDE's normal behavior.


Its been a while, but when I was doing web in VS2003, I'm pretty sure I
remember that behavior..

Anyway, while you're in debug mode, you should be able to bring up the
list of attached proceses (ctrl-alt-p) and specify that it will the
aspnet_wp. I'm not sure, but it may remember that you chose that
action.

Did anything else change? For example, are you using Cassini where
before you had it hosted in a 'real' IIS server?

Jun 22 '06 #6
I've been programming enterprise web apps every day for the past 6
years and the behavior I'm describing has never happened to me before
last week. You are right and it is attaching to the aspnet_wp.exe
process but when you hit "Start Debugging" a new IE window is opened
and you can tool around your app and when you either close IE or hit
"Stop Debugging" the code should stop running. At least, like I've
said, it always used to.

Nothing else changed AFAIK. I've always been under IIS, etc.

I appreciate your responses, Andy. Thanks for taking the time to
respond. I'd love to hear from one of the MS guys or MVPs on this
topic.

Andy wrote:
oh******@hotmail.com wrote:
What you say makes sense, however, this problem *never* happened in
VS2003 and to be honest it only started doing this last week (several
months after I started using VS2005) so this is definitely not the
IDE's normal behavior.


Its been a while, but when I was doing web in VS2003, I'm pretty sure I
remember that behavior..

Anyway, while you're in debug mode, you should be able to bring up the
list of attached proceses (ctrl-alt-p) and specify that it will the
aspnet_wp. I'm not sure, but it may remember that you chose that
action.

Did anything else change? For example, are you using Cassini where
before you had it hosted in a 'real' IIS server?


Jun 22 '06 #7

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

Similar topics

12
1331
by: clintonG | last post by:
VS2005 2.0 Beta 2 noting I've posted (to no avail so far) to the somewhat deadzone at news://microsoft.public.vsnet.ide and am getting ants in my pants for some discussion about this issue. ...
17
2547
by: Samuel | last post by:
Hi All, I am in the process of converting a VS 2003 project to VS 2005 project (VB.NET Class Library). It gives the error in TypeOf and DirectCast statements. It was working...
16
1630
by: CMM | last post by:
Is it me or has anyone noticed that F1 is really dumb in VS2005. Since VB3 I have been able to click F1 on an ambiguous method in code and the IDE automatically determines the type based on the...
0
914
by: Richard | last post by:
When I run my web project in VS2005, the built-in development server pops up a bubble on the task bar showing which port is being used. No problem, except that it stays on the task bar even after I...
16
1705
by: Edward Diener | last post by:
After spending more than a day reducing a complicated compiler bug to a simple case I reported it to the MSDN Product Feedback Center as a bug just now. However this bug is completely stymying my...
0
1185
by: Bob | last post by:
Hi, I have a dataset that is filled OK and used as the datasource for a datagridview. A mouse click on the datagridview picks the row. When I attempt to alter one of the ItemArray values the...
3
1388
by: ohnoonho | last post by:
Hello, I posted this in the C# group but thought maybe the better place would be here since it is happening with website projects so please forgive any cross posting. In my website projects I...
0
959
by: Christine | last post by:
I have deployed a web project in VS2005 with the following section of code. #if DEBUG IRecurAccount = new BLL.RecurAccount(); #else //connect to our remote server, create remote object...
13
1436
by: Bryan | last post by:
I am developing a VB project in VS2005 that has SP2 installed. This is the process that is causing a problem: Open VS2005, open the project Write some code in the code editor Run the project in...
5
2145
by: Ryan Liu | last post by:
I have this problem: "cannot continue edit while debug in VS2005". I see the same tread after I search this topic in google, but none solutions works for me. So again, I ask here. Can someone...
0
7033
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
6903
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
7027
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,...
1
4763
isladogs
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...
0
4468
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2987
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...
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
170
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...

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.