mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
wasm_interp: debug print displays the called export
This commit is contained in:
parent
eaf2782bbd
commit
b585bd5fde
1 changed files with 9 additions and 0 deletions
|
@ -224,6 +224,15 @@ impl<'a, I: ImportDispatcher> Instance<'a, I> {
|
|||
module.types.look_up_arg_type_bytes(signature_index)
|
||||
};
|
||||
|
||||
if self.debug_string.is_some() {
|
||||
println!(
|
||||
"Calling export func[{}] '{}' at address {:#x}",
|
||||
fn_index,
|
||||
fn_name,
|
||||
self.program_counter + module.code.section_offset as usize
|
||||
);
|
||||
}
|
||||
|
||||
Ok(arg_type_bytes)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue