美文网首页
launch add GDB 2020-11-09

launch add GDB 2020-11-09

作者: OTTFFIVE | 来源:发表于2020-11-09 15:43 被阅读0次

launch-prefix="xterm -e gdb --args" :
run your node in a gdb in a separate xterm window, manually type run to start it
添加之后:

<node pkg="waypoint_follower" type="pure_persuit" name="pure_pursuit" output="screen" launch-prefix="xterm -e gdb --args">
        <param name="is_linear_interpolation" value="$(arg is_linear_interpolation)"/>
</node>

运行时报错:

RLException: Roslaunch got a 'No such file or directory' error while attempting to run:

xterm -e gdb --args /home/grant/odometry_calibration_ws/devel/lib/odometry_calibration/encoder_odometer_sm_check __name:=calibrate_geometry_odom_lidar __log:=/home/grant/.ros/log/061af66a-65e5-11eb-9785-1cbfc059d643/calibrate_geometry_odom_lidar-2.log

Please make sure that all the executables in this command exist and have
executable permission. This is often caused by a bad launch-prefix.
The traceback for the exception was written to the log file

似乎是没有找到xterm的路径,Ubuntu使用的是gnome terminal,所以将命令修改为:

    <node pkg="odometry_calibration" type="encoder_odometer_sm_check" name="calibrate_geometry_odom_lidar"
     output="screen" launch-prefix="gnome-terminal -x gdb --args"  />

在gdb页面,按住鼠标右键,选择huge。
检测是否install xterm or gdb

添加一段运行时报错的代码,追踪实现流程:

    char *p;
    p = NULL;
    *p = 'x'; //往内存地址0处写东西,所以会产生段错误

相关文章

  • launch add GDB 2020-11-09

    launch-prefix="xterm -e gdb --args" :run your node in a g...

  • 如何利用VSCode调试mocha框架的nodejs

    在.vscode文件夹里添加launch.json文件,也可以直接选择"Debug"按钮,并通过下拉选择“Add ...

  • 周一 2020-11-09 23:06 - 07:00 晴 09

    2020-11-09 周总结周计划的一天,然后拼命总结读书笔记,太花时间了周一 2020-11-09 23:06 ...

  • gdb调试

    gdb安装 安装gdb 在钥匙管理器中新建证书 配置gdb证书 添加gdb初始化文件 .gdbinit gdb 命...

  • Debugging with GDB

    Debugging with GDB GDB@wiki(GNU Debugger)GDB is a portabl...

  • GDB 配置

    摘要:调试器 GDB 的配置 GDB 配置 使用 GDB 扩展来配置 GDB 事实上我还是觉得原生的 GDB 就...

  • 2. gdb的使用

    参考链接1. GDB调试2. gdb调试方法3. gdb调试示例 1. 说说 gdb gdb 是一款 UNIX 系...

  • GDB调试记录

    gdb attach 15343 # 调试某个进程 GNU gdb (GDB) 7.12Copyrigh...

  • gdb 调试

    gdb-入门 100-gdb-tips

  • gdb调试

    使用gdb:编译的时候加 -g 参数 启动gdb:gdb app(对应的可执行程序名) 在gdb启动后:r(un)...

网友评论

      本文标题:launch add GDB 2020-11-09

      本文链接:https://www.haomeiwen.com/subject/chnlbktx.html