简体   繁体   中英

How to print to javascript console in Pycharm/Intellij

Given a tiny web page that includes

console.log('hello ..')

in it: we can see the output on chrome developer tools | console

在此处输入图片说明

However it does not show up on the Pycharm console :

在此处输入图片说明

So then: how to make it show up in pycharm - is that possible? If not then what actually is that console for?

When a browser starts parsing HTML, it executes javascript scripts and console logs to a developer console( if specified to do so) that is a part of a browser. Your Pycharm console has nothing to do with a browser parsing HTML. You can execute js scripts in console with node.js and see output in that console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM