diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index f7bfb322c7d5..590687dcd0f9 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -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: diff --git a/python/helpers/pydev/pydevd_breakpoints.py b/python/helpers/pydev/pydevd_breakpoints.py index 0a6644b8cf01..beebebf4abed 100644 --- a/python/helpers/pydev/pydevd_breakpoints.py +++ b/python/helpers/pydev/pydevd_breakpoints.py @@ -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) #======================================================================================================================= diff --git a/python/helpers/pydev/pydevd_comm.py b/python/helpers/pydev/pydevd_comm.py index 592a96900c73..376065fbae03 100644 --- a/python/helpers/pydev/pydevd_comm.py +++ b/python/helpers/pydev/pydevd_comm.py @@ -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