我的脚本开头有两行,远程调试工作非常好:
from pysrc.pydevd import settrace
settrace('localhost', stdoutToServer=True, stderrToServer=True, suspend=False)
我的问题是,每次调用settrace
时,有没有办法清除Eclipse的控制台?
我现在正在手动操作,这有点烦人。
答案 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?)