Instrumenting edge action javascript

Hi

What is the recommended method of instrumenting Edge Actions javascript code?

I’ve tried stuff like

console.log ("val " + String(10));

and observing
Device>Resources>actions/console

But this only seems to be able to handle text - could be I’m doing something wrong

Thanks

John