pycharm调试控制台由于团队合作性而无法读取 [英] pycharm debug console unreadable because of teamcity

查看:89
本文介绍了pycharm调试控制台由于团队合作性而无法读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天以来,我的pycharm调试控制台被teamcity信息系统地污染,例如当我想打印出变量值时,将显示以下内容:

Since a few days my pycharm debug console is systematically polluted by teamcity infos, e.g. when i want to print out a variable value, the following will be displayed:

>>> df
##teamcity[testStdOut timestamp='2017-11-02T15:55:00.670' flowId='test_pricing_36_weight_provider.TestPricing36WeightProvider.test_add_weights' locati...

任何提示如何停用此teamcity的东西吗?

Any hint how to deactivate this teamcity thing ?

推荐答案

此是PyCharm / IntelliJ错误。

This is a PyCharm/IntelliJ bug.

PyCharm将stdout替换为其自己的对象。
它们会弄乱要打印的对象,从而导致:

PyCharm replaces stdout with its own object. They do a bunch of screwing around with objects that get printed, resulting in:


  • 某些对象未打印到提示中

  • 如果某些程序期望stdout是文件对象而不是StringIO,则无法运行。

这是PyCharm的一个长期存在的错误-确实没有任何借口可以在拥有每年$ 500许可费的软件中找到它。可以在我的需求列表中开箱即用地调试我的程序。

This is a long standing bug with PyCharm - there's really no excuse for it in a piece of software with a $500/yr license fee. Being able to debug my program in my IDE out of the box is way up there in my list of requirements.

建议的解决方法是设置:
JB_DISABLE_BUFFERING = 1
...您可以对所有单元测试进行此操作。

The work around they recommend is to set: JB_DISABLE_BUFFERING=1 ... which you can do for all unit tests.

请参阅:控制台中无输出,用于pycharm 2017中的单元测试

这篇关于pycharm调试控制台由于团队合作性而无法读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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