You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug-interface.h is a private header, it's not part of the public API. It's used by d8, but d8 uses all kinds of internal V8 APIs.
I can't quite divine from the twitter thread what the actual problem is (cc @MylesBorins, maybe you can clarify) but if you want to intercept console messages, the V8InspectorClientImpl::console_api_message() method I added in #252 lets you do that.
So at a very very high level all I want to do is make the console object actually print something (wild I know). I can think of a couple different creative ways to make it work... but if possible I would like to do it idiomaticaly.
Background: this was brought up in https://twitter.com/KevKassimo/status/1294695571446312961
It seems that we currently don't have bindings to
debug-interface.h
APIs, such that things likeSetConsoleDelegate
(to attach handlers for V8 builtin console) is not directly accessible. https://source.chromium.org/chromium/chromium/src/+/master:v8/src/debug/debug-interface.h;l=226-227;drc=459283200c38b18e13566549532ad4d7121451efSample usage of this specific API could be found here: https://source.chromium.org/chromium/chromium/src/+/master:v8/src/d8/d8.cc;l=2312;drc=7e9322335ee659e70c0239fc402db7d86f4b56d6
(I still cannot experiment with anything myself yet, so maybe someone else can take the work if they want to)
The text was updated successfully, but these errors were encountered: