This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…er.set_suspend) (#508) * Fix issue where pydevd threads could end up being traced. * Make sure that the stepping command is properly set when a thread is suspended. Fixes #501, #479
- Loading branch information
1 parent
0bffee8
commit fb27b41
Showing
7 changed files
with
92 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
ptvsd/_vendored/pydevd/tests_python/_debugger_case_settrace.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
def ask_for_stop(use_back): | ||
import pydevd | ||
if use_back: | ||
pydevd.settrace(stop_at_frame=sys._getframe().f_back) | ||
else: | ||
pydevd.settrace() | ||
print('Will stop here if use_back==False.') | ||
|
||
|
||
def outer_method(): | ||
ask_for_stop(True) | ||
print('will stop here.') | ||
ask_for_stop(False) | ||
|
||
|
||
if __name__ == '__main__': | ||
import os | ||
import sys | ||
root_dirname = os.path.dirname(os.path.dirname(__file__)) | ||
|
||
if root_dirname not in sys.path: | ||
sys.path.append(root_dirname) | ||
|
||
outer_method() | ||
print('TEST SUCEEDED!') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters