implement debug option

Here are the steps to implement debug option in your SharePoint Application:

 

1. Browse to the set of virtual directories for Windows SharePoint Services. Just remember, you cannot access the web.config file via your web browser as security restrictions set by IIS.

 

For example, c:/Inetpub/wwwroot/wss/VirtualDirectories.

 

For each virtual directory

Open the web.config file contained in the virtual directory.

Change the line <compilation batch=”false” debug=”false“> to <compilation batch=”false” debug=”true“>.

 

2. To obtain the complete call stack instead of the default error page, you can alter the web.config file: set the CallStack value to true in the SharePoint section:

<SafeMode MaxControls="200" CallStack="true"/>

 

3. Additionally make sure the CustomeErrors mode value (in the system.web section) is set to Off:

<customErrors mode=”Off”>

 

4. Open a command prompt and type iisreset to restart the server

 

reference:http://blogs.msdn.com/b/pranab/archive/2007/07/04/how-to-implement-debug-option-in-sharepoint-application-within-vs-2005-with-complete-call-stack-instead-of-custom-error-page.aspx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值