deps: v8_inspector: console support · nodejs/node@60d6e04 · GitHub
Skip to content

Commit 60d6e04

Browse files
alexkozycjihrig
authored andcommitted
deps: v8_inspector: console support
When node is running with --inspect flag, default console.log, console.warn and other methods call inspector console methods in addition to current behaviour (dump formatted message to stderr and stdout). Inspector console methods forward message to DevTools and show up in DevTools Console with DevTools formatters. Inspector console methods not present on Node console will be added into it. Only own methods on global.console object will be changed while in a debugging session. User are still able to redefine it, use console.Console or change original methods on Console.prototype. PR-URL: #7988 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com> Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com>
1 parent a9fe85e commit 60d6e04

2 files changed

Lines changed: 130 additions & 1 deletion

File tree

lib/internal/bootstrap_node.js

Lines changed: 38 additions & 1 deletion

src/inspector_agent.cc

Lines changed: 92 additions & 0 deletions

0 commit comments

Comments
 (0)