When the development machine is XP and the server is Windows Server 2003, how can I debug Web parts?
If you have a custom web control remote debugging developer, you have more experience with this.
Procedure for remote debugging:
I. server environment Configuration
1.1 remote debugging must be installed on the server.
Specific Method: select Custom installation when installing vs.net 2003, and select install remote debugging.
1.2 configure the window user. Specific Method: In the window user group management, find the debugger users user group and add the account for remote debugging to this group.
2. Development and debugging environment Configuration
2.1 configure the webpart Project Properties of vs.net and set the output path to the bin directory of wss iis (this bin directory is not available by default, which must be created by hand ). practice: You can share the IIS Directory of the remote server, and then change the webpart project output path of vs.net to the server sharing path.
2.2 Insert debugging breakpoint
2.3. On the menu bar of vs.net, choose tools> debug process to attach the w3wp.exe process of the remote server. At this time, the debugging environment configuration has been completed.
Debugging is already running. Open the WSS address of the server on IE. When the breakpoint on the Web part is run, it will be interrupted.