简体   繁体   English

Visual Studio 2010 Web Developer Express Tools.Attach to Process不存在

[英]Visual Studio 2010 Web Developer Express Tools.Attach to Process is not exists

I have loaded Web Site from HDD. 我从HDD加载了网站。 Now trying attach it to process WebDev.WebServer.EXE. 现在尝试将其附加到处理WebDev.WebServer.EXE。 But in Visual Studio 2010 Web Developer Express edition of VS not exist tool Attach To Process . 但是在Visual Studio 2010中,Web Developer Express版本的VS不存在工具Attach To Process Is it normal? 这是正常的吗? if yes, how can add this tool or solve my needs? 如果是,如何添加此工具或解决我的需求?

Attach To Process is not available in the Expressor the Web Developer Editions . 在Expressor Web Developer Edition中没有Attach To Process You will need to purchase a full version. 您需要购买完整版。 See here . 看到这里

Here is how to use Attach To Process on IIS process, when using Visual Studio Express for Web as your dev IDE: 以下是使用Visual Studio Express for Web作为开发IDE时如何在IIS进程上使用Attach To Process:

  • Open your web site project in Visual Studio Express 2012 for Web, 在Visual Studio Express 2012 for Web中打开您的网站项目,
    and browse your dev website in a browser - You can do it by Ctrl+F5 in VS (start without debugging) - this will run w3wp.exe (ISS Application Pool Process - this process will run when your project Web Location is HTTP) 并在浏览器中浏览您的开发网站 - 您可以通过VS中的Ctrl + F5(无需调试启动) - 这将运行w3wp.exe(ISS应用程序池进程 - 当您的项目Web位置为HTTP时,此过程将运行)
  • Open Visual Studio express 2012 for windows desktop . 打开Windows桌面的 Visual Studio Express 2012。 yes. 是。 for "windows desktop" - here will come the trick (-: 对于“Windows桌面” - 这将是诀窍( - :
  • In the VS for desktop - press Ctrl+O (Open File) - and browse to file in website that you want to debug - [root]/Default.aspx.cs for example. 在VS for desktop中 - 按Ctrl + O(打开文件) - 然后浏览到要调试的网站中的文件 - 例如[root] /Default.aspx.cs。
    Now in the Default.aspx.cs code, set a Breakpoint - for example in Page_Load event code 现在在Default.aspx.cs代码中,设置一个断点 - 例如在Page_Load事件代码中
  • In the VS for desktop - go to Debug menu and select Attach To Process... 在VS for desktop中 - 转到Debug菜单并选择Attach To Process ...
    In the Attach To Process dialog - in the Available Process list select your IIS process: w3wp.exe 在Attach To Process对话框中 - 在Available Process列表中选择您的IIS进程:w3wp.exe
    Now press Attach button 现在按“附加”按钮
  • Go to your browser and run the /Default.aspx page 转到浏览器并运行/Default.aspx页面

Result: The website run in IIS process, will stop in the breakpoint in the VS for desktop, and you can debug it. 结果:网站在IIS进程中运行,将在VS for桌面的断点处停止,您可以调试它。

Notes: 笔记:

  • This will work only if your website project Web Location is HTTP (this configured when creating the website project in the VS. Google for instructions ) 这仅适用于您的网站项目Web Location是HTTP(这是在VS.Google中创建网站项目时配置的指令
  • I did it on 2012 version, and it may work on other versions as well. 我是在2012版本上做到的,它也适用于其他版本。

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

相关问题 在Visual Studio Web Developer Express 2010中进行测试 - Testing in Visual Studio Web Developer Express 2010 Visual Web Developer 2010速成版 - Visual Web Developer 2010 Express Visual Studio Web Developer 2010 Express和64位 - Visual Studio Web Developer 2010 Express and 64-bit 在Visual Studio 2012 Express for Web中找不到“附加到进程”选项 - Cannot find “Attach to Process” option in Visual Studio 2012 Express for Web 我可以在Microsoft Visual Web Developer 2010 Express中安装Microsoft Visual Studio 2010 Service Pack 1吗 - Can I install Microsoft Visual Studio 2010 Service Pack 1 in Microsoft Visual Web Developer 2010 Express 使用VS Web Developer Express 2010“附加到进程”,还有其他选择吗? - “Attach to Process” using VS Web Developer Express 2010, any other options? Visual Web Developer Express 2010有哪些限制? - What are the limitations of Visual Web Developer Express 2010? Visual Studio 2010附加到进程失败 - Visual Studio 2010 attach to process fails 如何在Visual Studio 2005中打开Visual Web Developer 2010 Express - How can I open a Visual Web Developer 2010 Express in Visual Studio 2005 是否可以让Visual Studio 2010 Express Web Developer自动缩进其标记? - Is it possible to get Visual Studio 2010 Express Web Developer to autoindent it's markup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM