Description
Documentation
With gh-90095 being closed out by #116660, I believe a section on Advanced Usage of the pdb
module would be beneficial. While the current documentation for pdb
does discuss the use of .pdbrc
file, it does not provide many examples of what is capable, these capabilities are mostly inferred. In fact a googling of ".pdbrc python"
provides a few SO posts 1 2 asking how to set commands in .pdbrc
with no real explanation. Additionally I only find 2 real webpages 3 4 that discuss at length the use of .pdbrc
and it is mostly for defining aliases.
This Advanced Usage section would demonstrate how to set breakpoints and issue commands to those breakpoints from within the .pdbrc
file as an alternative to placing inline breakpoint()
and print()
calls for debugging purposes.