ros2 / ros2/ros2cli

Add "debug" command

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

Nobody has claimed this yet.

help wanted
Dominant language
Python
Stars
262
Forks
228
Avg merge
23h 15m
Merged PRs (30d)
12

Description

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.

Contributor guide

Open the contributing guide

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.