visualstudio code - javascript with Chrome extension
Platform:Imac 4k retina, High Sierra 10.13.3
VisualStudioCode
To debug javascript using VisualStudioCode you can use node.js. If using HTML page with embedded javascript on the page or as external js files, certainly can use Chrome inspector and debug. Alternatively, you can attach to Chrome (need to add the chrome extension to VisualStudioCode), and debug javascript using VisualStudio debug panel.
Question:
I have no problem launching Chrome app from the doc. My problem lies invoking chrome from the terminal. VisualStudio requires in order to use the Chrome extension, the following port must be assigned when rumming Chrome:
In a terminal, execute
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
iMac, OS X El Capitan (10.11.3)