Add "debug" command

Open
#671 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start by reading the existing run and launch command implementations and the code that prints the final node command line. Determine how a new debug command should select gdb or a configured debugger and how it should mirror those commands. Done means the command launches the node through the selected debugger and has coverage for its behavior.

Written by the indexing model from the issue text.

Description

help wanted

The debug command would be like the run or launch command, but instead of running the node directly, it runs inside gdb or any configured debugger.

Currently, whenever a node fails, I copy the full command line that is printed in the last line of logs, type gdb --args + the copied command line, and debug the node. But a proper ROS2 CLI tool would be awesome.

Dominant language
Python
Stars
274
Forks
246
Avg merge
1d 14h
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/ros2cli

All issues in ros2/ros2cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.