Skip to content

Commit

Permalink
fix: Enable wasm debugging in development.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 17, 2023
1 parent e09995f commit 49425d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/core/src/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 49425d9

Please sign in to comment.