Playground - debug

Hi during playing with the playground I wasn‘t able to debug some values. I use the hello world example with the following modification:

import Debug “mo:base/Debug”;
actor Echo {
// Say the given phase.
public query func say(phrase : Text) : async Text {
let a : Nat = 20;
return phrase;

I can‘t see the debug value i the log terminal.

Any hints on that?
Cheers Roland

This is expected. Debug.print can only be seen when running locally. See this issue: Redirect debug print to "Output Log" · Issue #61 · dfinity/motoko-playground · GitHub


Told ya it would be useful :wink:

1 Like

ok, I see, that make sense, but for learning propose it could be useful.

Thanks for clarification