英文好的,直接看原文html
https://blog.hospodarets.com/...
chrome://flags/#enable-devtools-experiments
開發者工具實驗性功能
必需要有 --inspect
node
> node --inspect www Debugger listening on port 9229. Warning: This is an experimental feature and could change at any time. To start debugging, open the following URL in Chrome: chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:9229/78a884f4-8c2e-459e-93f7-e1cbe87cf5cf
將這個地址粘貼到谷歌瀏覽器:chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:9229/78a884f4-8c2e-459e-93f7-e1cbe87cf5cf
chrome
程序後端輸出的日誌也回輸出到谷歌瀏覽器的console裏面,同時也能夠在Sources裏進行斷點調試了。
後端