jsk-ros-pkg / jsk_roseus

ROS EusLisp Client
http://wiki.ros.org/roseus/Tutorials
17 stars 56 forks source link

Add command line option to start roseus with gdb #630

Closed Affonso-Gui closed 4 years ago

Affonso-Gui commented 4 years ago

I've been needing some more debugging aid in euslisp, and decided to run roseus with gdb on, as pointed out in the roseus executable itself.

Not much difference, but in this PR am updating the gdb related comment to use the same irteusgl executable as the standard command.

EDIT: Incorporating @k-okada suggestion to add an command line argument --gdb to start roseus in the gdb mode.

k-okada commented 4 years ago

how about something like

LAUNCH_PREFIX="exec"
case $1 in
    --gdb)
        shift # past argument                                                   
        LAUNCH_PREFIX="gdb -ex run --args"
esac

${LAUNCH_PREFIX} ${EUSLISP_EXE}  "${ARG_STR[@]}" "$@"

???

Affonso-Gui commented 4 years ago

@k-okada This seems nice! Might also be the start of roseus command line options such as --script or --quiet

Will rebase this PR to include those