Hello Dash team and community,
While working on a Dash application, I encountered limitation that makes debugging more difficult, especially in apps with many callbacks.
Problem
When an error occurs in a callback, Dash’s error message typically includes:
- The component ID(s) involved,
- The property that triggered the error, and
- Sometimes, the output spec of the callback.
However, the error does not include:
- The name of the Python function that implements the callback.
Since Dash uses decorators to register callbacks, and since Python functions retain their __name__
, it seems technically feasible to include this information in the server-side logs or error messages.
Question
Has including the callback function name (or file/module location) in error logs been considered before?
This would make debugging significantly easier, especially in production or in large apps with reusable layouts and many callback definitions.
Suggestion
It would be helpful if:
- Callback-related error logs could mention the callback function’s name,
- Or provide a way to register callbacks with optional tags or identifiers for better tracing.
This would improve traceability and developer experience, particularly during production debugging.
Thanks for considering!