Skip to content

Make code.py line number available after safemode #8704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anecdata opened this issue Dec 6, 2023 · 1 comment
Open

Make code.py line number available after safemode #8704

anecdata opened this issue Dec 6, 2023 · 1 comment

Comments

@anecdata
Copy link
Member

anecdata commented Dec 6, 2023

It would be very helpful to know which line number was executing when a safemode occurred, perhaps with a supervisor attribute.

It's a reasonably-involved process (not beginner-friendly) to make a debug build, collect a backtrace, and decode it. And sometimes the backtrace is corrupted, or otherwise incorrect due to different build parameters with DEBUG=1, or perhaps other reasons.

Related to #1054

Brief Discord discussion here

@tannewt
Copy link
Member

tannewt commented Dec 7, 2023

Line number of the main file or would we try and keep the filename too? And if we store a string, why not the full traceback? Similar to #7490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants