From 49425d9baeeb68adcfaafce64c5733acfd95b6a9 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Sun, 17 Sep 2023 12:55:33 -0700 Subject: [PATCH] fix: Enable wasm debugging in development. --- crates/core/src/tool.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/core/src/tool.rs b/crates/core/src/tool.rs index 4f394272b..f40707cb3 100644 --- a/crates/core/src/tool.rs +++ b/crates/core/src/tool.rs @@ -108,6 +108,11 @@ impl Tool { on_uninstalled_global: Emitter::new(), }; + #[cfg(debug_assertions)] + { + extism::set_log_file(proto.cwd.join("wasm-debug.log"), None); + } + debug!( "Created tool {} and its WASM runtime", color::id(id.as_str())