https://dagster.io/ logo
#ask-community
Title
# ask-community
d

Daniel Mosesson

09/15/2022, 8:14 PM
Is there documentation about how to use the dagster debug command/file? I feel like every once in a while I run into cases where it would be really helpful but I can't seem to figure out how to make it work (probably just overthinking it)?
a

alex

09/15/2022, 8:42 PM
i dont think theres more than the cli help text
dagster debug export
dump run from current instance to file
dagster debug import
load from file in to current instance
dagit-debug
load an in mem instance backed dagit with files passed
d

Daniel Mosesson

09/15/2022, 8:54 PM
Apologies for still missing it: I am in dagit, I download the debug file, and I have VS code open. What do I do?
(if it matters, in my case dagit is not local, at least for the interesting debugs that I am looking for)
a

alex

09/15/2022, 8:58 PM
what type of problem are you hoping to debug? the debug file just contains the information displayed in dagit, the event log and other metadata
so these tools were designed for capturing a run as you see it in your dagit to send to someone (ie the dagster team) who doesn’t have access to your dagit server. They can take the file and load it in a tool like
dagit-debug
to see what you see in your dagit instance
d

Daniel Mosesson

09/15/2022, 9:03 PM
ah, so its not a file I can use to re-run with
pdb
or whatever with the server's configuration for that job, its basically an enhanced log
a

alex

09/15/2022, 9:08 PM
ya, i wish we could do what you were hoping for but im not sure exactly how that would work
one thing to note is there is
context.pdb
on the
OpExecutionContext
if you are trying to run and debug stuff locally
d

Daniel Mosesson

09/15/2022, 9:10 PM
that was fast 🙂
I was thinking that it would contain the "instantiated" resources/configs for a job (how this would work with secrets would be tbd I guess) so that it would actually run in an environment with all the right packages installed and could be debugged in a debugger to repo the issue
as opposed to (at least what I do now) creating a test where I recreate the resources/config manually, and then run/debug it that way
49 Views