-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-121468: Support async breakpoint in pdb #132576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1b77cdb
285efe2
677c952
15290d5
a3401e9
50c3c9c
a6c580d
090715b
ebdc161
109d8b1
e953532
968472d
ff09ab2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -891,9 +891,9 @@ def default(self, line): | |
| except Exception as e: | ||
| # Maybe it's an await expression/statement | ||
| if ( | ||
| isinstance(e, SyntaxError) | ||
| self.async_shim_frame is not None | ||
| and isinstance(e, SyntaxError) | ||
| and e.msg == "'await' outside function" | ||
| and self.async_shim_frame is not None | ||
| ): | ||
| try: | ||
| self._exec_await(buffer, globals, locals) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be run without the exception from line 891 in the context
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I restructured the code as we know whether it is an await code during compile. The nice side effect is that we don't need to execute the code under the exception context. |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.