How to open the console console in phpstorm
http://www.miracleart.cn/tool/phpstorm/412766.html
Hope this article can help you.
Configure xdebug and install the plug-in that supports it in the browser. There are tutorials on this site, please search for it