-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #358 from goodboy/switch_to_pdbp
Switch to `pdbp` 🏄🏼
Showing
10 changed files
with
149 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
import sys | ||
|
||
import trio | ||
import tractor | ||
|
||
|
||
async def main() -> None: | ||
async with tractor.open_nursery(debug_mode=True) as an: | ||
|
||
assert os.environ['PYTHONBREAKPOINT'] == 'tractor._debug._set_trace' | ||
|
||
# TODO: an assert that verifies the hook has indeed been, hooked | ||
# XD | ||
assert sys.breakpointhook is not tractor._debug._set_trace | ||
|
||
breakpoint() | ||
|
||
# TODO: an assert that verifies the hook is unhooked.. | ||
assert sys.breakpointhook | ||
breakpoint() | ||
|
||
if __name__ == '__main__': | ||
trio.run(main) |
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,15 @@ | ||
Switch to using the fork & fix of `pdb++`, `pdbp`: | ||
https://github.com/mdmintz/pdbp | ||
|
||
Allows us to sidestep a variety of issues that aren't being maintained | ||
in the upstream project thanks to the hard work of @mdmintz! | ||
|
||
We also include some default settings adjustments as per recent | ||
development on the fork: | ||
|
||
- sticky mode is still turned on by default but now activates when | ||
a using the `ll` repl command. | ||
- turn off line truncation by default to avoid inter-line gaps when | ||
resizing the terimnal during use. | ||
- when using the backtrace cmd either by `w` or `bt`, the config | ||
automatically switches to non-sticky mode. |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
pytest | ||
pytest-trio | ||
pytest-timeout | ||
pdbpp | ||
pdbp | ||
mypy | ||
trio_typing | ||
pexpect | ||
|
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
Oops, something went wrong.