| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This will be great, when done! (Just providing encouraging words of support :) |
Sorry, something went wrong.
|
Thanks Doug :-) |
Sorry, something went wrong.
|
+1. Do you want to add the history manager and Completer in this PR or later ? |
Sorry, something went wrong.
|
:-( needs rebase. |
Sorry, something went wrong.
|
Rebased, added history and completion. However, there's now a noticeable pause before it creates each debugger prompt; I want to see if I can reduce this. |
Sorry, something went wrong.
|
@takluyver made a PR against your branch to remove the delay. It just create a new pt_app, and pt_cli and reuse it across prompt calls. |
Sorry, something went wrong.
Sorry, something went wrong.
|
I've cleaned it up with a separate class for the prompt_toolkit based debugging machinery, rather than conditional code to use it inside IPython.core. If we go for this approach, ipdb will probably need some changes to use IPython.terminal.debugger.TerminalPdb. Pinging @gotcha. |
Sorry, something went wrong.
Yeas, I was thinking about that too.
+1 for merging, should I wait then ? I also played with adding keybindings for ipdb, but it seem prompt_toolkit does not really like that, |
Sorry, something went wrong.
|
Keybindings that do things like move between frames? Anything that can produce output on stdout while the prompt is active needs to be run inside CLI.patch_stdout_context(). And I don't think it works on stderr, though it should be possible to patch that as well. Let's give @gotcha a chance to see this before we merge. |
Sorry, something went wrong.
Sure, or even actually execute the command with the prompt. Technically for 6.0 I'd like to refactor the prompt to get current location and frame, to get something slightly smarter than the current 'just' ipdb> It would also be pretty neat to have a frame selector, where you can actually press up/down and enter to be dropped at a specific point. |
Sorry, something went wrong.
|
needs rebase BTW. |
Sorry, something went wrong.
It would, but before we get too far into building debugger UIs, we should look at what existing things like pudb already provide. Will rebase. |
Sorry, something went wrong.
Still need to hookup history and completion.
Or Old Style. Roll on, end of Python 2 support.
Also fix lookup of current namespace.
The prompt drawing delay is now invisible to human eye.
Fair enough. |
Sorry, something went wrong.
|
Do you want to merge, or leave @gotcha a few more days ? |
Sorry, something went wrong.
|
I think it's been long enough already. :-) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Builds on @Carreau's #9481, with a fallback to the standard input-based machinery when we're in the kernel. I don't much like how I check what we're in, though.