VSCode debugger #10946
Replies: 5 comments 9 replies
-
And for from dagster._core.instance import DagsterInstance
from dagster.daemon.cli import _daemon_run_command
with DagsterInstance.get() as instance:
_daemon_run_command(instance, {}) Same |
Beta Was this translation helpful? Give feedback.
-
unfortunately this doesn't work anymore. Do you have an updated version maybe ? |
Beta Was this translation helpful? Give feedback.
-
Sharing an example of how this can be replicated in Pycharm. |
Beta Was this translation helpful? Give feedback.
-
For future reference, here is a simple vscode configuration to launch dagster in debug mode. You can set breakpoint anywhere in assets, sensors etc etc.
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to attach to a Dagster dev instance running in a docker container? |
Beta Was this translation helpful? Give feedback.
-
It's not pretty, but it works:
Create a file called e.g.
run-dagit.py
:Add to your
launch.json
:Then Ctrl+Shift+P and
Debug: Select and Start Debugging
and chooserun dagit
.Let me know if you have a more elegant solution 🔧
Beta Was this translation helpful? Give feedback.
All reactions