mdmintz / pdbp

pdbp (Pdb+): A drop-in replacement for pdb and pdbpp. To replace "pdb", add "import pdbp" to an "__init__.py" file.
Other
75 stars 2 forks source link

Feat request: highlight the "current stack frame" in the `w`/`where`/`bt` output? #32

Closed goodboy closed 1 year ago

goodboy commented 1 year ago

As per our mini discussion in the tractor matrix room: https://matrix.to/#/!scerhxskQIIRMpggqm:matrix.org/$slaV-GyCnC5Bbt3-IDn41aDJGsMJ4xfZoiZznBY3GrQ?via=matrix.org&via=gitter.im&via=ancap.tech

It'd be handy to have a visual indicator of the current frame particularly when stepping through frames using u/d/f <frame#>.

Currently there is a > char prefix (which came from pdbpp afaiu) but it'd nice to have something with a little more "pop" for the human eye too 😉


To give a visual eg. stepping through a bt in one of our multi-actor debugger scripts:

screenshot-2023-04-19_10-51-13

As you can see, it's kinda hard to notice the chevron by first glance.

goodboy commented 1 year ago

Ah, also I mention the term "highlight" in title, but i think actually just "bold text" for the "current frame" would be even better for my personal preferences.

mdmintz commented 1 year ago

Resolved in 1.3.1 - https://github.com/mdmintz/pdbp/releases/tag/v1.3.1