Skip to content

Commit

Permalink
Hiding better the dummy threads created related to the debugger daemo…
Browse files Browse the repository at this point in the history
…n threads.
  • Loading branch information
fabioz committed Aug 19, 2014
1 parent d05aeab commit d53fc05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydevd.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ def processInternalCommands(self):
if isinstance(t, PyDBDaemonThread):
pydev_log.error_once('Found PyDBDaemonThread in threading.enumerate.')

elif getattr(t, 'is_pydev_daemon_thread', False):
pass # I.e.: skip the DummyThreads created from pydev daemon threads

elif isThreadAlive(t):
program_threads_alive[thread_id] = t

Expand Down
2 changes: 2 additions & 0 deletions pydevd_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def start(self):
def run(self):
created_pydb_daemon = self.created_pydb_daemon_threads
created_pydb_daemon[self] = 1
dummy_thread = threading.currentThread()
dummy_thread.is_pydev_daemon_thread = True
try:
try:
if IS_JYTHON:
Expand Down

0 comments on commit d53fc05

Please sign in to comment.