1 from __future__ import print_function
6 def command_function(debugger, command, exe_ctx, result, internal_dict):
7 result.SetImmediateOutputFile(sys.__stdout__)
8 print('this is a test string, just a test string', file=result)
10 def write_file(debugger, command, exe_ctx, result, internal_dict):
11 args = shlex.split(command)
14 with open(path, mode) as f:
15 result.SetImmediateOutputFile(f)
17 print('writing to file with mode: ' + mode, file=result)