Debugging SharePoint 2007 Code

前端 未结 5 1088
面向向阳花
面向向阳花 2021-02-10 04:05

How do you debug your SharePoint 2007 code? Since SharePoint runs on a remote server, and I\'m developing on a windows xp machine (with the necessary .dll files copied into my

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-10 04:42

    Virtual machine is the only way to go. You don't want to dedicate a whole machine to dev (unless you have extras) and developing on your production server is just asking for trouble. I prefer VMWare, but there are others that work just as well.

    Tracing works well as normal debugging isn't really an option.

    What else I do is try to develop all the logic (the stuff that isn't SharePoint dependent) on just a regular asp.net site, then integrate it into SharePoint after it's tested.

    Hope that makes sense.

    Are you talking about developing web parts? Custom pages? Something else?

提交回复
热议问题