如何在 Python IDLE 中运行的模块以外的模块中设置断点?
如果我编辑两个模块,eggs 和 ham,并且模块 Eggs 导入 ham,如何运行模块 Eggs,以便 IDLE 在 ham 中设置的断点处停止?到目前为止,我只能让 IDLE 识别实际运行的模块中设置的断点,而不是导入的断点。
If I edit two modules, eggs and ham, and module eggs imports ham, how do I run module eggs such that IDLE stops at breakpoints set in ham? So far, I have only been able to get IDLE to recognize breakpoints set in the module actually being run, not those being imported.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在每个文件中的断点处停止。 (它有效,我刚刚测试过。)
You should stop at break points in each file. (It works, I just tested it.)