avatar

v8_inspector landed on Node.js v6.3.0

Node.js v6.3.0 is out. Read the release brief by{' '} @Fishrock123. https://t.co/Oxc0LLSAW3 #nodejs #current

— NodeSource (@NodeSource){' '} July 6, 2016

Node.js 已經默默爬到 v6,不過這也不是新聞了,根據 Roadmap,v6 也將於今年底接替 v4 成為正式的 LTS,隨著 v6 的到來,ES2015 的支援幾乎全部達陣了

不過本篇不是要提這件事,關於 ES2015 的資訊,相信大家搜尋一下都可以找到一大堆,在幾天前推出的 v6.3.0 中有包含個相當有趣的 PR - Add v8_inspector support

一旦 Node.js 接受這個 PR,就代表將原生支援 Chrome Debugging Protocol,所以現在不需要再透過第三方的模組,原生就可以直接透用 Chrome DevTools 來 Profile/Debug

node --inspect index.js
// 就這樣ww
// 然後它就會噴一段 chrome-devtools:// 開頭的位址
// 貼到 chrome 裡打開就可以囉

也可以參考 @paul_irish 的介紹文 - Debugging Node.js Nightlies with Chrome DevTools,也可以看看下面這個在今年 IO 上提到 DevTools 的場子。

看到 Google v8 & Node.js core 有越來越多合作,真是不錯啊 ;p

powered by WebMention.io

You can skeet this post or discuss it on BlueSky, the comments will show up here.
0Likes0Replies0Mentions

Be the first one to share this article!