How to Server Side Debug

 

In Internet Services Manager (MMC):  

 

- Select http://<server>/<workspace>/Portal
- Set "Application Protection" to LOW
- In configuration/App debugging, enable "ASP client side debugging" and "ASP server side debugging"
- Apply & restart IIS
- Open SPS portal from IE at least once
 

Now to do the following:
- Open Accessories -> MS Script Debugger
- Open "Running Documents"
- Select the "dashboard.asp" page
- search for Execute in the "dashboard.asp" file (you will find it twice at lines 1262, 1264)
- add breakpoints to both instances
 

I used the Visual Studio .Net debugger, more powerful than the MS Script Debugger.   What also works for me is to add "stop" (VB) or "debugger" (javascript) in the web part code.
This asks for the debugger to start and you jump right in your web part code at server-side.
  I only tested this on the server, don't know if you can do remote debugging...   

 

By Serge van den Oever
specialist developer
serge@macaw.nl
http://www.macaw.nl

 

 

Copyright © sharepointserver.com. All rights reserved.

Legal Disclaimer