DEBUG_PRINTF (2, "Reporting method %s native_offset %d\n", method->name, info->native_offset);
if (!mono_find_prev_seq_point_for_native_offset (mono_get_root_domain (), method, info->native_offset, NULL, &sp))
- DEBUG_PRINTF (1, "Failed to lookup sequence point\n");
+ DEBUG_PRINTF (2, "Failed to lookup sequence point\n");
DbgEngineStackFrame *frame = g_new0 (DbgEngineStackFrame, 1);
mono_debug_init (MONO_DEBUG_FORMAT_MONO);
mono_de_init (&cbs);
- mono_de_set_log_level (1, stdout);
+ mono_de_set_log_level (log_level, stdout);
mini_debug_options.gen_sdb_seq_points = TRUE;
mini_debug_options.mdb_optimizations = TRUE;
}
MONO_API void
-mono_wasm_enable_debugging (void)
+mono_wasm_enable_debugging (int debug_level)
{
DEBUG_PRINTF (1, "DEBUGGING ENABLED\n");
debugger_enabled = TRUE;
+ log_level = debug_level;
}
EMSCRIPTEN_KEEPALIVE int
{
int nmodifiers = 1;
- printf (">>>> mono_wasm_setup_single_step %d\n", kind);
+ DEBUG_PRINTF (2, ">>>> mono_wasm_setup_single_step %d\n", kind);
EventRequest *req = (EventRequest *)g_malloc0 (sizeof (EventRequest) + (nmodifiers * sizeof (Modifier)));
req->id = ++event_request_id;
req->event_kind = EVENT_KIND_STEP;
void mono_wasm_debugger_init (void);
// sdks/wasm/driver.c is C and uses this
-G_EXTERN_C void mono_wasm_enable_debugging (void);
+G_EXTERN_C void mono_wasm_enable_debugging (int log_level);
void mono_wasm_breakpoint_hit (void);
void mono_wasm_set_timeout (int timeout, int id);