使用PyDev远程调试器(pydevd)清除Eclipse的输出控制台?

时间:2015-05-12 11:49:11

标签: python eclipse pydev

我的脚本开头有两行,远程调试工作非常好:

from pysrc.pydevd import settrace
settrace('localhost', stdoutToServer=True, stderrToServer=True, suspend=False)

我的问题是,每次调用settrace时,有没有办法清除Eclipse的控制台? 我现在正在手动操作,这有点烦人。

1 个答案:

答案 0 :(得分:0)

Unfortunately no, there's no way to do that automatically.

What you could do however is calling settrace and right afterwards do something as:

require 'aws-sdk'

s3 = Aws::S3::Resource.new(
  region: 'us-east-1',
  access_key_id: '...',
  secret_access_key: '...'
)

s3.bucket('bucket-name').object('key').get(response_target: '/path/to/file')

so that you know that the debug session started at that point (then maybe you wouldn't need to clear it?)