mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Better logging in debugger communication.
This commit is contained in:
@@ -764,7 +764,7 @@ class PyDB:
|
||||
del self.exception_set[exception]
|
||||
self.always_exception_set.remove(exception)
|
||||
except:
|
||||
pass
|
||||
pydev_log.debug("Error while removing exception"%sys.exc_info()[0]);
|
||||
update_exception_hook(self)
|
||||
|
||||
elif cmd_id == CMD_LOAD_SOURCE:
|
||||
|
||||
@@ -127,6 +127,9 @@ def excepthook(exctype, value, tb):
|
||||
debugger.force_post_mortem_stop += 1
|
||||
|
||||
pydevd_tracing.SetTrace(None) #no tracing from here
|
||||
|
||||
pydev_log.debug('Handling post-mortem stop on exception breakpoint %s'% exception_breakpoint.qname)
|
||||
|
||||
debugger.handle_post_mortem_stop(thread.additionalInfo, thread)
|
||||
|
||||
#=======================================================================================================================
|
||||
|
||||
@@ -311,10 +311,12 @@ class ReaderThread(PyDBDaemonThread):
|
||||
break
|
||||
while buffer.find('\n') != -1:
|
||||
command, buffer = buffer.split('\n', 1)
|
||||
pydev_log.debug('Received command: >>%s<<\n' % (command,))
|
||||
|
||||
args = command.split('\t', 2)
|
||||
try:
|
||||
self.processCommand(int(args[0]), int(args[1]), args[2])
|
||||
cmd_id = int(args[0])
|
||||
pydev_log.debug('Received command: %s %s\n' % (ID_TO_MEANING.get(str(cmd_id), '???'), command,))
|
||||
self.processCommand(cmd_id, int(args[1]), args[2])
|
||||
except:
|
||||
traceback.print_exc()
|
||||
sys.stderr.write("Can't process net command: %s\n" % command)
|
||||
@@ -383,7 +385,7 @@ class WriterThread(PyDBDaemonThread):
|
||||
out = cmd.getOutgoing()
|
||||
|
||||
if DebugInfoHolder.DEBUG_TRACE_LEVEL >= 1:
|
||||
out_message = 'sending cmd: '
|
||||
out_message = 'Sending cmd: '
|
||||
out_message += ID_TO_MEANING.get(out[:3], 'UNKNOWN')
|
||||
out_message += ' '
|
||||
out_message += out
|
||||
|
||||
Reference in New Issue
Block a user