Anam Nizami
Anam Nizami

Reputation: 377

(hyperledger composer playground) Can you see results of console.log('something') in browser?

Where console.log('') gets printed, if I don't have a local setup and working on code inside the browser.

Upvotes: 2

Views: 1662

Answers (2)

PrashantNagawade
PrashantNagawade

Reputation: 426

Writing console.log in a Transaction can be used to debug and see the incoming and outgoing data. It can be viewed using developer options by pressing Ctrl+Shift+i in Chrome or Firefox.

But if you are using Composer Playground locally, then the log output is written to the Docker Container.

Upvotes: 1

Paul O'Mahony
Paul O'Mahony

Reputation: 6740

you can see the output in the Developer console. In Firefox and Chrome browsers for example - hit CTRL-SHIFT-I and it pops up - then go to ...Console..JS and you can see what you console.log() there

Beyond that (eg. client and runtime logs) see How do I see the logs for Fabric Composer

Upvotes: 2

Related Questions