Hi there, how can I debug a sensor? I tried to use...
# ask-community
s
Hi there, how can I debug a sensor? I tried to use
pdb.set_trace()
but somehow when running dagster-daemon, it will throw exception when I’m debugging:
Copy code
Sensor daemon caught an error for sensor acsu_sensor : dagster.core.errors.DagsterUserCodeUnreachableError: Could not reach user code server
o
hi @Son Giang, one thing to try would be to just run the sensor on its own (without the daemon). The docs on testing sensors show how to execute the body of a sensor function (optionally passing in a context argument)
👍 1