fetch the full HTML source in the debugger

Don't merge this yet! This needs a tiny patch in our tools to export the `fetch` function used here.

Opening the PR in case someone wants to go ahead and look at the code.