简体   繁体   English

Eclipse控制台中的Pydev输出被三倍截断

[英]Pydev output in Eclipse console truncated by triple period

My favourite thing about Eclipse and Pydev is using the remote debugging feature. 关于Eclipse和Pydev的我最喜欢的事情是使用远程调试功能。 This is of great help when debugging python modules in other applications. 在其他应用程序中调试python模块时,这很有帮助。

However, despite setting the console to unlimited output, (right click on console > preferences > Limit Console output ) I still find that stdout being routed to my debug server is truncated when printed to my console. 但是,尽管将控制台设置为无限制输出,(右键单击控制台>首选项> 限制控制台输出 ),我仍然发现,路由到我的调试服务器的标准输出在打印到我的控制台时会被截断 For example : (traceback shortened to give my fingers break) 例如:(缩短了回溯以使我的手指断了)

Traceback (most recent call last):   File "blah/blah/blah.py", line
 113, in solve
     solver(thing[i]) TypeError: 'f...

And that's it. 就是这样。 It ends with a ... without printing the whole darn thing. 它以...结尾,而无需打印整个损坏的东西。 Any ideas? 有任何想法吗?

This is actually done by the debugger backend itself. 这实际上是由调试器后端本身完成的。 There's a constant (MAX_IO_MSG_SIZE) which limits it at org.python.pydev_xxx/pysrc/pydevd_comm.py 有一个常量(MAX_IO_MSG_SIZE)将其限制为org.python.pydev_xxx / pysrc / pydevd_comm.py

So, if you want, you can raise that value to a bigger value (default is 1000 chars/message). 因此,如果您愿意,可以将该值提高到更大的值(默认值为1000个字符/消息)。 There's currently no way to customize that value from the UI (maybe it could be set initially by some environment variable -- such as PYDEVD_MAX_IO_MSG_SIZE -- if it's available... care to submit a patch? See: http://www.pydev.org/developers.html for getting the code). 当前无法从UI定制该值(可能可以通过一些环境变量来初始设置它-如PYDEVD_MAX_IO_MSG_SIZE-如果可用的话...要提交补丁吗?请参见: http://www.pydev .org / developers.html获取代码)。

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

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