6

How do I setup/build/run a Google's V8 Engine so that I can call a sample javascript file and see it interpreted step by step all the way down to C++ code?

Alexander Pavlov
  • 31,598
  • 5
  • 67
  • 93
Stealth
  • 1,559
  • 4
  • 16
  • 34
  • +1 for asking my question. :-) – rajakvk Mar 27 '13 at 07:09
  • 1
    While I'd love an answer to this question myself, I would like to share that I've found a reference to JSON related debugging here: https://code.google.com/p/v8-wiki/wiki/DebuggerProtocol; I know it's possible to connect a debugger to a port in the V8 engine, so I'm guessing this is the protocol used. BTW: It does mention in-process based debugging using a function based API. Searching the wiki doesn't produce anything however. :/ – James Wilkins Mar 19 '15 at 21:06

1 Answers1

0

Update: this is how it used to be.

V8 wiki page provides sample "lineprocessor.cc" program that runs custom JavaScript and tells how to enable debugging for these scripts.

beefeather
  • 1,040
  • 5
  • 8
  • 3
    No, it does not. For example, the wiki mentions things such as setting up a debug message handler, and several other things, while the example does not appear to utilize any of the mchanosms mentioned in the wiki, leaving a reader to have to blindly guess how to actually hook things together. – markt1964 Oct 28 '14 at 15:23