简体   繁体   English

如何在Spyder中使用python脚本的调试工具?

[英]How to use the debugging tool in Spyder for python scripts?

I was recently introduced to Spyder. 我最近被介绍给Spyder。 I decided to use Spyder because of its debugging capabilities. 由于其调试功能,我决定使用Spyder。 However, I have not been able to effectively use pdb in Spyder. 但是,我无法在Spyder中有效地使用pdb。 When I started, I had the impression that the debugging tool would be similar to that of MATLAB. 当我开始时,我的印象是调试工具与MATLAB类似。 Is this true? 这是真的? How can the interpreter point to the breakpoint? 解释器如何指向断点? I'd appreciate a proper resource on this. 我很欣赏这方面的合适资源。

( Spyder dev here ) If you are using an Spyder version less than 2.2.5 , please update it. Spyder dev here )如果您使用的Spyder版本低于2.2.5 ,请更新它。 On it you will find a Debug menu from which you can set breakpoints and control all debugging actions we have to offer. 在它上面你会找到一个Debug菜单,你可以从中设置断点并控制我们提供的所有调试操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM