zoukankan      html  css  js  c++  java
  • 使用VS2008调试远程主机

    前提条件:

    • remote host和client都在一个局域网内,且必须在一个网段
    • remot host和client主机必须登录相同的用户,用户名必须一直
    • 关闭防火墙或打开相应的端口,一般是4015
    • remote host和client的本地安全策略中的网络访问必须改为“经典,本地用户以自己的身份验证”,路径为控制面板->用户管理->本地安全设置->本地策略->安全选项->网络访问

    调试方法:

    1. 拷贝$MS_INSTALL\Common7\IDE\Remote Debugger\下目录到remote host,一般是一个x86的文件夹。
    2. 在remote host运行里面的msvsmon.exe,即debug monitor。

    至此有2种调试方法:一种是匿名调试,无需验证,一种是密码验证调试: 匿名调试:

    1. remote host的msvsmon下选择option,点击no authenritaion(native only)
    2. 之后可以看到主机名和IP,一般是hostname:4015的形式
    3. client打开VS,选择attach to process
    4. transport 选择remote (native only no authentation)
    5. Qulifier选择hostname:4015,之后刷新就可以看到进程列表了

    密码验证调试:这种方法需要remote host和client的用户名和密码完全一致

    1. remote host的msvsmon下选择option,点击windows authentication
    2. client打开VS,选择attach to process
    3. transport 选择default
    4. Qulifier选择username@:hostname,之后刷新就可以看到进程列表了
  • 相关阅读:
    nginx公网IP无法访问浏览器
    Internet接入方式
    Adobe Photoshop Lightroom 5.3和序列号
    getopt
    printf
    scanf
    cycling -avoid the vicious cycle
    ACE handle_timeout 事件重入
    Linux查看程序端口占用
    The GNU C Library
  • 原文地址:https://www.cnblogs.com/zhangronghua/p/1541670.html
Copyright © 2011-2022 走看看