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

落花浮王杯 提交于 2019-12-10 23:25:30

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/47177296/hyperledger-composer-playground-can-you-see-results-of-console-logsomething

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!