Skip to content

Conversation

@io-no
Copy link
Member

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

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
Member

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

@io-no
Copy link
Member Author

io-no commented Dec 10, 2025

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
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.

4 participants