代码之家  ›  专栏  ›  技术社区  ›  Aaron

使用GNU DDD进行远程调试

  •  11
  • Aaron  · 技术社区  · 16 年前

    问题:

    • 可以吗 调试 当 目标 是在 远程主机 ?

    例子:

     # ddd --debugger /usr/bin/bashdb <sript-name> (on remote host)
    
    3 回复  |  直到 10 年前
        1
  •  5
  •   filofel    16 年前

    as explained there.

    (gdb) set remotebaud 115200
    (gdb) target remote /dev/ttyUSB0
    

    (gdb) target remote the-target:2345
    

        2
  •  2
  •   Nathan Fellman    16 年前

    $DISPLAY

    mylocalhost:~> echo $DISPLAY
    mylocalhost:1
    

    mylocalhost:~> ssh remotehost
    remotehost:~> setenv DISPLAY mylocalhost:1    
    

    remotehost:~> ddd <whatever parameters you want>
    

    mylocalhost:~> xhost +
    
    推荐文章