Skip to content
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

Switch to pdbp 🏄🏼 #358

Merged
merged 15 commits into from
May 15, 2023
Merged

Switch to pdbp 🏄🏼 #358

merged 15 commits into from
May 15, 2023

Conversation

goodboy
Copy link
Owner

@goodboy goodboy commented Apr 16, 2023

A ton of thanks to @mdmintz for the fork and fix of pdbpp in the new
and improved pdbp: https://github.com/mdmintz/pdbp

It would seem pretty much all the outstanding issues we had with pdbpp
are non-existent in the new project 💃🏼 , so i think other then running
this in my production dev eng for a bit, we can probably just land this
pronto 😎


Deatz of previous issues that seem to now be resolved:

  • pytest top level root process wasn't using pdbpp on test
    crashes (when using --pdbp flag; seems completely resolved now
  • no need to uninstall pyrepl any more since the alt-l hotkey
    i've been wanting works just fine in vim mode?
  • previously we weren't disabling the truncate_long_lines: bool
    which solves the whole resized-terminal-messes-with-vertical-line-spacing.
  • current stack frame highlighting as suggested in Feat request: highlight the "current stack frame" in the w/where/bt output? mdmintz/pdbp#32

@mdmintz
Copy link

mdmintz commented Apr 19, 2023

There's a new release of pdbp - 1.3.0 - https://github.com/mdmintz/pdbp/releases/tag/v1.3.0

@goodboy
Copy link
Owner Author

goodboy commented Apr 19, 2023

@mdmintz already tested manually and our test suite 🏄🏼

Should i pin to latest in our install script?

@mdmintz
Copy link

mdmintz commented Apr 19, 2023

@goodboy I'm working on the update for the extra highlighting you wanted. Should be ready soon.

@mdmintz
Copy link

mdmintz commented Apr 20, 2023

pdbp 1.3.1 is available, in case anyone missed the news.

@goodboy
Copy link
Owner Author

goodboy commented Apr 20, 2023

@mdmintz thanks! been trying it out the last day or so.

I'm still slightly confused on the truncate defaults i think?
Not sure whether we want it disabled or not to keep vertical spacing between lines always consistent?

@mdmintz
Copy link

mdmintz commented Apr 26, 2023

A new release of pdbp is available - https://github.com/mdmintz/pdbp/releases/tag/v1.4.0

@goodboy goodboy marked this pull request as ready for review May 15, 2023 02:53
Previously we were leaking our (pdb++) override into the Python runtime
which would always result in a runtime error whenever `breakpoint()` is
called outside our runtime; after exit of the root actor . This
explicitly restores any previous hook override (detected during startup)
or deletes the hook and restores the environment if none existed prior.

Also adds a new WIP debugging example script to ensure breakpointing
works as normal after runtime close; this will be added to the test
suite.
@goodboy
Copy link
Owner Author

goodboy commented May 15, 2023

Weird, debugger tests failed even though they didn't before?

Removed the pdbpp dep from test reqs, let's see if that does it?

@goodboy goodboy mentioned this pull request May 15, 2023
@goodboy
Copy link
Owner Author

goodboy commented May 15, 2023

Only last thing was maybe removing the pyreadline3 dep from the setup since it was only required on windows IIRC?

Not sure it's a big deal enough to block this and we probably won't get clarity until @mdmintz returns from vaca anyway 😂

So gonna land once stamped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants