The asp.net code still executes after clicking sto

2019-08-01 07:57发布

I create a asp.net page and test the code in debug mode step by step.

I always think that the code will stop running after I click "stopping debugging" in VS2008 when I test it in IE because the IE closes immediately.

Today, I use Firefox to test it. I find that the code still executes continuously after I click "stop debugging".

I want the code stop running immediately even in FF.

What should I do?

3条回答
叼着烟拽天下
2楼-- · 2019-08-01 07:59

this happens in vs2010 also.

solution is to goto: Debug menu and choose Terminate All

查看更多
ら.Afraid
3楼-- · 2019-08-01 08:07

I imagine you are, with IE, just 'running' the project, and IE opens immediately? And with Firefox, you open firefox manually, and navigate to the appropriate site?

The difference is that with running it, Visual Studio will close the browser when you stop debugging. In Firefox, because Visual Studio didn't open the browser, it won't close it.

Does that make sense?

Either way, the code still "exists" in both cases, and only runs when it's executed.

查看更多
做个烂人
4楼-- · 2019-08-01 08:13

Stop the web server from the task bar, assuming you are using Cassini. It will stop the debugger and the web site itself.

查看更多
登录 后发表回答