简体   繁体   English

NetBeans和Python

[英]NetBeans and Python

When I run some python code in NetBeans, which raises an error, the output in NetBeans just gives an error message and no further information, such as line number. 当我在NetBeans中运行一些python代码时,这会引发错误,NetBeans中的输出仅给出错误消息,而没有其他信息,例如行号。 Is there any way to fix that? 有什么办法可以解决这个问题?

If you can, I would run your script outside of NetBeans either with the built-in editor (IDLE) or just run it from the command line. 如果可以,我可以使用内置编辑器(IDLE)在NetBeans之外运行脚本,也可以仅从命令行运行它。 That should give you a traceback with the error and lineno 那应该给你回溯错误和lineno

NetBeans has issues with debugging, as other posts suggest . 正如其他帖子所建议的那样 ,NetBeans在调试方面存在问题。

如果没有任何编译错误,则添加的解决方案正在调试

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

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