You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug Report] VS Code debugging issues for Python extension 2024.18.0 or newer #2238
When running Python scripts using VScode launch configs inside the base IsaacLab Docker container (without a Conda env), I get errors such as "the toml module not being found". I believe other issues on the same problem were raised before, e.g., #1976 and #1500, which are left unresolved. I have debugged the problem a bit and found the following:
Apparently, starting with version 2024.18.0 of the VSCode Python extension, the new interpreter resolver (the “native locator”) now ignores shell‐script wrappers specified in the python.defaultInterpreterPath setting (see this issue). This means IsaacLab Python environment is not setup correctly, resulting in the aforementioned errors.
Downgrading the VSCode Python extension version, using a conda environment, or adding the "python.defaultInterpreterPath": "${workspaceFolder}/_isaac_sim/python.sh",
line to each of the launch.json entries seems to resolve the issue. Nevertheless, maybe there is a better way to do this.
Steps to reproduce
Within the base IsaacLab container, use VSCode Python extension version 2024.18.0 or newer, no conda environment (i.e., use _isaac_sim/python.sh), and try to use the debugger to play any of the launch.json entries. You should get errors due to the environment not being set. Actually, you can already see in the terminal that python.sh is not executed, but rather the underlying Python executable directly.
It seems like VSCode has changed the syntax for launch.json so now the line you would need to add to your launch.json configurations is "python": "${workspaceFolder}/_isaac_sim/python.sh" (there is no "defaultInterpreterPath" property anymore).
But the debugger immediately stops and doesn't attach.
I can run the script from the project folder that was created like python scripts/dreamer/train.py --task=Isaac-PlanetaryLander-Direct-6DOF-v0 --num_envs=8 --enable_cameras and confirmed that works.
But the debugger immediately stops and doesn't attach.
I can run the script from the project folder that was created like python scripts/dreamer/train.py --task=Isaac-PlanetaryLander-Direct-6DOF-v0 --num_envs=8 --enable_cameras and confirmed that works.
Try changing your python path to /workspace/isaaclab/_isaac_sim/python.sh. It runs some setup steps before running kit/python/bin/python3 on your script and those missing setup steps might be why you're having a problem.
Activity
RandomOakForest commentedon Apr 4, 2025
Thank you for catching this and posting your detailed findings. We appreciate that. The team will review this. Thanks.
emirkin commentedon Jul 21, 2025
@RandomOakForest , any update on this issue?
EricPedley commentedon Jul 30, 2025
It seems like VSCode has changed the syntax for launch.json so now the line you would need to add to your launch.json configurations is
"python": "${workspaceFolder}/_isaac_sim/python.sh"(there is no "defaultInterpreterPath" property anymore).george-nehma commentedon Jan 28, 2026
I have created a new IsaacLabb project with
./isaaclab.sh --newand am trying to debug my script with this config for the launch.json fileBut the debugger immediately stops and doesn't attach.
I can run the script from the project folder that was created like
python scripts/dreamer/train.py --task=Isaac-PlanetaryLander-Direct-6DOF-v0 --num_envs=8 --enable_camerasand confirmed that works.What am I missing from my configuration? @RandomOakForest
EricPedley commentedon Jan 28, 2026
Try changing your python path to
/workspace/isaaclab/_isaac_sim/python.sh. It runs some setup steps before running kit/python/bin/python3 on your script and those missing setup steps might be why you're having a problem.george-nehma commentedon Jan 29, 2026
@EricPedley Unfortunately this is how I first had it and it still gave the error.
george-nehma commentedon Feb 19, 2026
@RandomOakForest Are there any updates for this issue, or how we might be able to run debugpy debugging sessions with the project format?
[Tooling] Clean up VS Code configuration and fix debugging (#7940)
StafaH commentedon Sep 22, 2026
Fixed in #7940
[Tooling] Clean up VS Code configuration and fix debugging (isaac-sim…