Start playing with `realgud'

This commit is contained in:
Gerard Vermeulen 2024-06-11 18:50:35 +02:00
parent 48c854fb54
commit 170f678493

View File

@ -277,12 +277,13 @@ of [[info:emacs#Saving Customizations][saving customizations (info)]].
(parsebib . "melpa-stable")
(queue . "gnu")
(rainbow-mode . "gnu")
(realgud . "melpa")
(s . "melpa-stable")
(xr . "gnu")
(vertico . "gnu")
(with-editor . "nongnu")
(yasnippet . "gnu"))
package-selected-packages '(no-littering))
package-selected-packages '(no-littering realgud))
#+end_src
#+caption[Set the third set of Emacs options: final tweaks]:
@ -5948,8 +5949,11 @@ configures =code-cells=.
:END:
Listing [[lst:pdb-example]] and [[lst:pdb-numpy]] show how to start using PDB.
Debugging works better with =tool-bar-mode= enabled.
Links of interest are:
- [[https://realpython.com/python-debugging-pdb/][Python Debugging with PDB]]
- [[https://github.com/realgud/realgud][RealGUD]] provides a nice interface to PDB by means of {{{kbd(M-x
realgud:pdb)}}}.
- [[https://docs.python.org/3/library/pdb.html][The Python Debugger]]
- [[yt:vfPtGsSJldg][Introduction to PDB (Python-2.7 YouTube video)]]
- [[https://stackoverflow.com/questions/7668979/how-do-you-watch-a-variable-in-pdb][How do you watch a variable in PDB? (Python-2.7)]]
@ -5984,11 +5988,9 @@ def buggy():
from numpy.linalg import inv
a = matrix(array([[1.0, 1.0], [1.0, 1.0]]))
breakpoint()
# Use "display", "p", or "pp" to inspect "a".
# A series of "s" does not raise the exception here, contrary to "c".
b = inv(a)
breakpoint()
return b
if __name__ == "__main__":