Coder Social home page Coder Social logo

Comments (3)

piscisaureus avatar piscisaureus commented on August 20, 2024 1

I think you might have to implement your own Console object.
AFAIK the built-in console object only forwards messages to the chrome inspector console.

from rusty_v8.

bnoordhuis avatar bnoordhuis commented on August 20, 2024

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.

from rusty_v8.

MylesBorins avatar MylesBorins commented on August 20, 2024

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.

from rusty_v8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.