简体   繁体   English

VS2010中无法附加到脚本过程

[英]Failed to Attach to Script process in VS2010

I am trying to attach to w3wp.exe to debug classic asp. 我正在尝试附加到w3wp.exe来调试经典的ASP。

i am attaching to type "Script", but get the following error: 我附加到“脚本”类型,但出现以下错误:

Failed to attach to these type(s) of code: Script: A debugger is already attached. 无法附加到以下类型的代码:脚本:调试器已附加。

i saw online that maybe another program is running on the background and is using "Script". 我在网上看到,也许另一个程序正在后台运行并且正在使用“脚本”。

how can i find out what program uses it? 我如何找出使用它的程序? and possibly kill it? 并可能杀死它? or is there another way to go around it. 还是有另一种解决方法。

maybe i can debug classic asp without attaching to Script? 也许我可以在不附加脚本的情况下调试经典的ASP? this is the only way i've been able to do it in the past. 这是我过去能够做到的唯一方法。

Thanks! 谢谢!

you have to configure asp in your iis and set server-side debugging to true. 您必须在iis中配置asp并将服务器端调试设置为true。

then you can use the "stop" keyword in your asp script in the line you want to set a "break Point". 那么您可以在要设置“断点”的行中的asp脚本中使用“停止”关键字。 when the line is executed a window will popup and you can start visual Studio to debug your asp script. 当执行该行时,将弹出一个窗口,您可以启动Visual Studio调试ASP脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM