Hi all,

I've been playing with producing dev-friendly stack traces, and I've found
PrintCurrentStackTrace is pretty much the only way without getting too deep
into V8 internals. I setup this very simple test script (named fail.js)

function f() {
    function f2() {
        MAKE.ME.FAIL;
    }
    f2()
}
f()

However, the only stack trace that is printed by PrintCurrentStackTrace is

    at #<an Object>.command

( #<an Object>.command being the JS snippet that reads the file and evals
it)

While I would expect the stack to be like:

    at fail.js:5 f2()
    at fail.js:7 f()
    at #<an Object>.command

Is there a way to get the invocation stack in a similar way (even without
the source code and line) ?

Thanks !

 -- Sébastien

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to