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

skills/py-embed-trick/ #1

Open
utterances-bot opened this issue May 16, 2023 · 1 comment
Open

skills/py-embed-trick/ #1

utterances-bot opened this issue May 16, 2023 · 1 comment

Comments

@utterances-bot
Copy link

The embed debugging trick in Python and Ctrl+Z | Colin's Blog

Insert the breakpointThere’s a useful trick for efficiently debugging Python code. Say if you have a loop like the one below, how to interactively access the list l at each loop step? 123l = []for i i

https://blog.co1in.me/skills/py-embed-trick/

Repository owner deleted a comment from leoleoasd May 16, 2023
Repository owner deleted a comment from leoleoasd May 16, 2023
Copy link

mochaaP commented Jun 23, 2023

省流:

import code
code.interact(local=locals())

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

No branches or pull requests

2 participants