如何使用Eclipse和Pydev正确调试? [英] How do I debug properly using Eclipse and Pydev?

查看:236
本文介绍了如何使用Eclipse和Pydev正确调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经配置了Pydev,所以它运行我的应用程序,但是当我想通过设置断点来检查/跟踪我的代码,调试器不会踢(不能跟踪)。有没有人知道这里发生了什么?

解决方案

好吧,我想我发现我的问题是什么。我不得不在view.py中的def语句上设置断点,而不是之后的语句。


I have got Pydev configured properly so it runs my app, however when I want to inspect/trace my code by setting up breakpoints the debugger does not kick in (can't trace). Does anyone got any idea what's going on here?

解决方案

Ok I think I found what my problem was. I had to set the breakpoint on the def statement in views.py instead of the statements after it.

这篇关于如何使用Eclipse和Pydev正确调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆