I am not sure that this new function is needed. In the debugger API we already
have the GetMirror function which can retrieve the mirror object for a
JavaScript object. There you should be able to get the FunctionMirror, invoke the script and sourceLocation methods to get the information needed. This can be
done from JavaScript (see TestMirror in test-debug.cc).

Another possibility might be to use Debug::Call. This is already used in
V8Proxy.cpp (see V8Proxy::sourceLineNumber and V8Proxy::sourceName), but
Debug::Call works as if a debug break has happened, so it will be more difficult
to use that.

Also I suggest that when collecting this information consider collection the
column on the line as well, as JavaScript sometimes can have long lines.

http://codereview.chromium.org/565007

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

Reply via email to