4 ms·
The impetus for python, rather than making a call into the inferior/debugged process is largely to support pretty printing data structures within core files & c
by ratmice 3y ago
The impetus for python, rather than making a call into the inferior/debugged process is largely to support pretty printing data structures within core files & crash dumps. While it is certainly possible, it is not a small amount of work to generate pretty printers to run in the debugger likely involving an entire toolchain to compile the `Debug` traits to. The easiest way is probably compiling Debug traits to wasm, with the existing python pretty printers calling into that would be my best guess at a good starting point.
- tomjakubowski 3y agoThat's a really neat use case for wasm. And, if there were debugger support for wasm pretty-printers, it would be easy to support in language toolchains which already compile to wasm.