Move debugger from IDL to HNI

Part of #1480.

This moves the functions from `debugger.idl.json` to HNI.