osandov / drgn

Programmable debugger
Other
1.76k stars 165 forks source link

Integrate with Jupyter/IPython #318

Open osandov opened 1 year ago

osandov commented 1 year ago

The standard Python REPL isn't the most convenient for long debugging sessions. Specifically, editing multi-line blocks sucks, and reusing anything that you came up with for future debugging sessions is tedious. @htejun experimented with Jupyter and found that it is super useful in conjunction with drgn thanks to its persistent, reusable cells:

FZ5_Md5UcAAfJvQ

It's possible to wire up drgn and Jupyter together today, but we should explore integrating them more and documenting it.

shunghsiyu commented 1 year ago

One thing I’ve meant to do for awhile (but haven’t found the time) is to host a mini kernel core dump and its deubginfo alongside a Jupiter notebook showcasing drgn somewhere.

That way people can just open the notebook with Google Colab and jump straight into learning kernel debugging interactively.