转: Debug SharePoint WebParts - VS 2005

113 篇文章 0 订阅
112 篇文章 0 订阅
Debug SharePoint WebParts - VS 2005

With VS 2003 and SPS 2003/WSS2.0, it was totally different. There was just one w3wp process you need to attach the debugger to.

How to debug in VS 2005?

  1.  
    1. Click on Debug, and then on Attach to Process...
    2. Look for w3wp.exe process. If you don't see one,check "Show processes from all users" and "Show Processes in all sessions".
    3. Select all w3wp.exe processess that run under the security account that sharepoint is running under. If you are not sure about the security account you may select all w3wp.exe processess listed in there.
      • If you select only one and if it happens to be not the right process, you may see  this icon(which means, The breakpoint will not be currently hit. No symbols have been loaded for this document) instead of  at  your breakpoint. You may want to check to see if there are additional w3wp.exe processes running or the check boxes mentioned in the step 2 are checked.
    4. Click on Attach
    5. Open the page that includes your WebPart.
    6. You will now notice that as the page renders the control switches to the VS Debugger.

Click here to know Which w3wp.exe process belongs to which App Pool in IIS6.0

Quick Access Keyboard shortcut Tip for attaching the processes to the debugger: ALT + D, then hit P, and then hit W. 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值