GRIM: Implement the getDebugger API

This allows errors to be shown in the debugger