void initDebugger(Context context) {
context.setGeneratingDebug(true);
try {
if (debugger == null) {
debugger = new HelmaDebugger(app.getName());
debugger.setScopeProvider(this);
debugger.attachTo(contextFactory);
}
} catch (Exception x) {
app.logError("Error setting up debugger", x);