Skip to content
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

DebuggedApplication middleware could display local variables #1309

Open
sblondon opened this issue May 21, 2018 · 6 comments
Open

DebuggedApplication middleware could display local variables #1309

sblondon opened this issue May 21, 2018 · 6 comments
Labels

Comments

@sblondon
Copy link

I think it would be nice to show local variables for each frame. It would be useful, especially if the debugger is disabled.

For the interface, the local variables could be in a block which would be folded and unfolded with javascript. (This behaviour is equivalent to the django debugger middlware.)

I plan to do a PR if you think it's a good idea.

@davidism
Copy link
Member

You can already do that by typing dump() in a frame's console.

@RonnyPfannschmidt
Copy link
Contributor

RonnyPfannschmidt commented May 21, 2018

@davidism i believe @sblondon meant for when the console is disabled for a debugger (so dump wont work)

@davidism
Copy link
Member

That seems like a security issue. Tying it to the console means you have to enter a pin before seeing that information.

@RonnyPfannschmidt
Copy link
Contributor

@davidism would it be reasonable to have it require the pin as well (i believe not having a python shell would limit the damage somebody that took the credentials could do while still enabling basic debugging)

@sblondon
Copy link
Author

sblondon commented May 23, 2018

Yes, it would be a solution: when the pin is validated, each local variables would be inserted in the html.

@valentijnscholten

This comment has been minimized.

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

No branches or pull requests

4 participants