问题:PyCharm的几种调试方法的区别

关于PyCharm的调试方式,step into、step over、step out、run to cursor、resume programe与c语言相关的调试器功能基本相同,但PyCharm提供了更多其他的调试功能,包括Step into my code、Force Step into、smart step into、Force Step over、Force run to cursor、Jump to Cursor这些功能是比较独特的,这些功能中,老猿对Force Step into还没弄明白,其他功能含义如下:

  1. Step into my code(执行到应用代码),从当前系统模块函数代码中直接往下执行直到执行到应用本身的代码
  2. smart step into(智能单步跟踪):当一行代码中有多个函数,想进入其中一个函数其他函数不进入
  3. Force Step over(强制单步跟踪),函数中的断点全部会disable不会发生作用
  4. Force run to cursor(强制执行到光标):中间如果有断点会全部忽略不停止
  5. Jump to Cursor(跳转到光标):忽略其他代码,直接从当前执行处跳转到当前光标代码行。
    具体解释请参考《第15.2节 PyCharm程序调试功能介绍》。

老猿Python,跟老猿学Python!
博客地址:https://blog.csdn.net/LaoYuanPython

老猿Python博客文章目录:https://blog.csdn.net/LaoYuanPython/article/details/98245036
请大家多多支持,点赞、评论和加关注!谢谢!

原文地址:https://www.cnblogs.com/LaoYuanPython/p/11931742.html