使用Remote Debugger

Remote Debugger的安装文件在Visual Studio 2005\vsts\vs\Remote Debugger\x86rdbgsetup.exe或者本机的\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86,在测试机安装结束后开始配置服务.
  1. Check ‘Run the "Visual Studio 2005 Remote Debugger" service’
  2. Type user name and passwords. 这个用户和工作机上进行的调试的用户一样即可.也许用其它的高权限用户也可以,但没试过.
  3. 选择允许本地网络还是所有计算机.根据实际情况定.
  4. 在开始菜单里找到Remote Debugger并运行.
  5. 在工作机Visual Studio->Tools->Attach to Process. Transport选择Default,Qualifier输入domain\user@RemoteServer,按回车,如果防火墙配置正常的话现在可以看到远程机器的进程列表了.
  6. 在测试机运行要调试的程序,并在工作机选择attach到这个进程即可.

结合Build Events使用.打开工程属性窗口,点Build Events页,在Post-Build event输入copy *.* \\remote\folder. 在Build页uncheck Optimize Code,在Advanced->Output->Debug Info选择full.

Advertisements
This entry was posted in internal. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s