https://dagster.io/ logo
#dagster-support
Title
# dagster-support
s

Son Giang

05/29/2022, 3:28 PM
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

owen

05/31/2022, 6:29 PM
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