[v8-users] Callback when variable is no longer valid

2019-05-19 Thread Gautham B A
Hi all, I'm trying to track when a variable becomes invalid. Consider the following code where the variable goes out of scope - function SomeFunction() { for(let i = 0; i < 10; ++i) { let instance = new MyClass(); // MyClass is implemented in C++ } // instance goes out of scope and isn't accessib

Re: [v8-users] How to run a v8 shell standalone and inspect / debug with Chrome DevTools

2019-05-19 Thread Gautham B A
Checkout this project - https://github.com/hsharsha/v8inspector . It does exactly what you're looking for. We're using the same at Couchbase and it's working absolutely fine. On Sunday, 19 May 2019 13:50:30 UTC+5:30, joe lewis wrote: > > A bit more reading and I understood how dumb the question

Re: [v8-users] How to run a v8 shell standalone and inspect / debug with Chrome DevTools

2019-05-19 Thread Ben Noordhuis
On Sun, May 19, 2019 at 10:20 AM joe lewis wrote: > > A bit more reading and I understood how dumb the question is. I'd like to > validate if my current understanding is correct. > > V8 is more than the shell binary that comes with the build. V8 provides > extensive C++ APIs to compile Javascrip

Re: [v8-users] How to run a v8 shell standalone and inspect / debug with Chrome DevTools

2019-05-19 Thread joe lewis
A bit more reading and I understood how dumb the question is. I'd like to validate if my current understanding is correct. V8 is more than the shell binary that comes with the build. V8 provides extensive C++ APIs to compile Javascript source code from other programs (usually termed as embedding V