Skip to content

Locals in the stacktrace - #295

Open
io-no wants to merge 2 commits into
mainfrom
stacktrace-proposal
Open

Locals in the stacktrace#295
io-no wants to merge 2 commits into
mainfrom
stacktrace-proposal

Conversation

@io-no

@io-no io-no commented Dec 8, 2025

Copy link
Copy Markdown
Member

This is a proposal to add visualization of local variables in the stack trace, as offered by rich.traceback (which we already use).

Rationale: We will always have at least the debugger available as a local variable, so printing it would be helpful when errors occur, making it easier to spot asymmetry mistakes.

Drawback: This will make the stacktrace even bigger.

image

@Frank01001

Copy link
Copy Markdown
Member

I like it, but maybe we should also have the ability to disable it from libcontext?

@io-no

io-no commented Dec 10, 2025

Copy link
Copy Markdown
Member Author

I like it, but maybe we should also have the ability to disable it from libcontext?

Yup, that's an idea. I can add it (maybe I will first decide if it's time to rewrite the libcontext to be coherent and useful)

@MrIndeciso

Copy link
Copy Markdown
Member

I like it, but maybe we should also have the ability to disable it from libcontext?

Yup, that's an idea. I can add it (maybe I will first decide if it's time to rewrite the libcontext to be coherent and useful)

Can you disable it once we have called install(True)? Or how would it work if we add it to the libcontext?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants