VSS.Net Remote Debug

Step 1: 先在target machine 上安装 Remote Debugger,安装文件在Visual studio 安装目录下的 Remote Debugger folder下,注意如果target machine 是64bit,必须安装x64 folder下的,反之,如果是32bit则需要安装x86 folder下的,安装的过程中会有个 CheckBox, 问你要不要 run remote debug as service,如果check上了,则需要提供一个run service 的 account ,并且要在local policies里面,在policy "log on as service" 里面添加上这个account,如果觉得麻烦的话,不check就OK了,每次在开始菜单->Microsoft Visual studio 2008->Visual studio tools->Remote debug 运行一把就OK.

Step 2: 在local machine的VSS->Tools->Attach to process ,在弹出的dialog 里 的qualifier输入target machine的IP或者machine name,回车,check 上 show processes from all users,选择你要debug的process,Attach就OK了,前提是你已经打开souce code了

 

 

posted on 2010-06-07 14:16  阿南  阅读(419)  评论(0)    收藏  举报

导航