https://prefect.io logo
#prefect-community
Title
# prefect-community
t

Thomas Henn

05/26/2022, 5:25 AM
Hi everyone ! What is the proper way to use a debugger with Prefect Orion? For example, is there any debug setting so that Prefect Orion doesn't capture the exceptions within tasks? I couldn't find anything about this in the documentation. Thanks in advance!
Untitled.py
k

Kevin Kho

05/26/2022, 2:05 PM
I think the error is seen but not in the logs? Will ask the team about it
You should be able to use any debugger locally and the error is captured by the logs
z

Zanie

05/26/2022, 3:53 PM
Ah this is a great question, we don’t have a mechanism to disable handling of the exception but we can look into adding one.
If you do
.result()
at the end we will reraise the original exception and a debugger will find that frame with the 0/0 error
t

Thomas Henn

05/27/2022, 1:18 AM
Thank you for answering my question! I will try the .result() method. Some mechanism to not handle the exceptions would make debugging easier I think. There would be no need to pinpoint the part of the code to change and restart everything a second time.
4 Views