Don't request strack trace if the thread isn't stopped
This commit is contained in:
parent
17a9494dbc
commit
e15c50a4f4
2 changed files with 10 additions and 5 deletions
|
|
@ -237,14 +237,19 @@ class StackTraceView( object ):
|
|||
elif stoppedThreadId is not None and thread.id == stoppedThreadId:
|
||||
thread.Paused( stopEvent )
|
||||
|
||||
# If this is a stopped event, load the stack trace for the "current"
|
||||
# thread. Don't do this on other thrads requests because some servers
|
||||
# just break when that happens.
|
||||
if infer_current_frame:
|
||||
if thread.id == self._current_thread:
|
||||
self._LoadStackTrace( thread, True, reason )
|
||||
requesting = True
|
||||
if thread.CanExpand():
|
||||
self._LoadStackTrace( thread, True, reason )
|
||||
requesting = True
|
||||
elif self._current_thread is None:
|
||||
self._current_thread = thread.id
|
||||
self._LoadStackTrace( thread, True, reason )
|
||||
requesting = True
|
||||
if thread.CanExpand():
|
||||
self._LoadStackTrace( thread, True, reason )
|
||||
requesting = True
|
||||
|
||||
if not requesting:
|
||||
self._DrawThreads()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue