使用 Visual Studio 2008 调试 Sitecore 6
我正在尝试使用 Visual Studio 2008(Windows Server 2003 操作系统)调试 Sitecore 6 ASP.NET 代码。我正在尝试让断点起作用。我尝试设置断点,然后在 VS 上,debug ->附加到进程..-> IIS Web 服务器进程
,但是当我浏览到断点位于 Sitecore.Web.UI.WebControl.DoRender
方法开头的某个 .aspx 页面时,没有任何反应。
我尝试检查网站的 properties -> 上的客户端和服务器端调试设置配置->调试
但没有任何改变。我尝试停止网站,回收应用程序池并重新启动,重新附加调试器,但没有任何反应。
有人有更好的主意吗?
I'm trying to debug Sitecore 6 ASP.NET code using Visual Studio 2008 (Windows Server 2003 OS). I am trying to get breakpoints to work. I tried setting the breakpoint and then on VS, debug -> attach to process.. -> IIS web server process
, but nothing happens when I browse to a certain .aspx page where a breakpoint is located at the beginning of the Sitecore.Web.UI.WebControl.DoRender
method.
I tried checking both client-side and server-side debugging settings on the website's properties -> configuration -> debugging
but nothing changes. I tried stopping the website, recycling the appPool and restarting, re-attaching the debugger and nothing happens.
Does anyone have a better idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您尝试附加到正确的进程。它在 IIS 6+ 中称为 w3wp.exe。
Make sure you are trying to attach to the correct process. It is called w3wp.exe in IIS 6+.
在页面上,在代码后面调用命令 Page OnLoad
或
然后打开此页面,并等待来自调试器的消息出现并附加到 Visual Studio。如果没有出现,则表示您处于发布模式,需要修改您的 web.config
如果您的 www 服务出现错误,请重新启动 iis-admin 服务,而不仅仅是 www。使用 iisAdmin www 也会重新启动,但有时调试器不会仅通过 www 重新启动来附加。
希望这对您有帮助。
On a page, on the code behinde call the command the Page OnLoad
or
then open this page, and wait for the Message from Debuger to appear and attach to visual studio. If not appear then its means that you are on release mode and you need to modify your web.config
If you have some error with your www service, then restart the iis-admin service and not only the www. With the iisAdmin www restarts also but some times debugger not attach with only www restart.
Hope this help you.