Skip to content

Adds debugpy support - #4863

Merged
kellyguo11 merged 6 commits into
isaac-sim:developfrom
myurasov-nv:my-debugpy
Mar 7, 2026
Merged

kellyguo11 merged 6 commits into
isaac-sim:developfrom
myurasov-nv:my-debugpy

Conversation

@myurasov-nv

Copy link
Copy Markdown
Member

Description

This add support for debugpy: installation of the debugpy through isaaclab's setup.py; instructions on how to use it.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • [NA] I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Mar 7, 2026
@greptile-apps

greptile-apps Bot commented Mar 7, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds out-of-the-box debugpy support to Isaac Lab by installing it as a package dependency, updating the VS Code launch template with an improved "attach" configuration and usage instructions, and adding documentation explaining how to attach VS Code to a running debugpy session.

Key changes:

  • source/isaaclab/setup.py: debugpy>=1.8.20 added to INSTALL_REQUIRES alongside other dev/testing tools (pytest, coverage, etc.)
  • .vscode/tools/launch.template.json: Attach configuration renamed to "Python: Debugger Attach" with clear inline usage comments
  • docs/source/overview/developer-guide/vs_code.rst: New section explaining how to run code under debugpy and attach VS Code — but the section is missing step 3 (connecting VS Code to the running session) and contains a slightly inaccurate description of which side listens on port 3000
  • source/isaaclab/config/extension.toml + CHANGELOG.rst: Version bumped to 4.5.8 with a corresponding changelog entry

Confidence Score: 4/5

  • Safe to merge after fixing the incomplete documentation section.
  • The code changes are minimal and low-risk. The only real issues are a missing step in the documentation (step 3 for connecting VS Code) and a mildly inaccurate description of port listening direction. The dependency addition is consistent with the project's existing pattern.
  • docs/source/overview/developer-guide/vs_code.rst needs the missing step 3 added to make the debugpy instructions complete. [done - MY]

Important Files Changed

Filename Overview
docs/source/overview/developer-guide/vs_code.rst New "Attach to a Running debugpy Session" section is incomplete — missing step 3 (how to connect VS Code) — and contains a mildly inaccurate description of which side listens on port 3000.
source/isaaclab/setup.py Adds debugpy>=1.8.20 to INSTALL_REQUIRES; consistent with the project's existing pattern of bundling dev tools, but makes a debug adapter a hard dependency for all users.
.vscode/tools/launch.template.json Renames the attach config and adds helpful inline usage comments — clean and correct change.
source/isaaclab/config/extension.toml Routine patch version bump from 4.5.6 to 4.5.7 to reflect the new debugpy dependency.
source/isaaclab/docs/CHANGELOG.rst Changelog entry for 4.5.7 correctly describes the addition of the debugpy dependency.

Sequence Diagram

sequenceDiagram
    participant User
    participant Shell as isaaclab.sh
    participant debugpy as debugpy process
    participant VSCode as VS Code Debugger

    User->>Shell: ./isaaclab.sh -p -m debugpy --listen 3000 --wait-for-client -c "..."
    Shell->>debugpy: Start debugpy, listen on localhost:3000
    debugpy-->>User: Waiting for client to connect...
    User->>VSCode: Select "Python: Debugger Attach" + press F5
    VSCode->>debugpy: Connect to localhost:3000
    debugpy-->>VSCode: Connection established
    Note over debugpy,VSCode: Breakpoints hit, stepping, inspection available
    debugpy->>Shell: Resume script execution
Loading

Last reviewed commit: da1744b

Comment thread source/isaaclab/setup.py Resolved
@kellyguo11
kellyguo11 merged commit f63854a into isaac-sim:develop Mar 7, 2026
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants