How to debug the v8 src code by exec `tools/run-tests.py --outdir out.gn/x64.debug`

6 views
Skip to first unread message

Early

unread,
Apr 10, 2017, 4:31:25 AM4/10/17
to v8-users
Hi,I want to debug the v8 src code while runing the `tools/run-tests.py --outdir out.gn/x64.debug`.
So, is there any way to help me to pause on a breakpoint which was set on a cc file in v8/src, when I run the `tools/run-tests.py --outdir out.gn/x64.debug`?

Jakob Kummerow

unread,
Apr 10, 2017, 5:27:43 AM4/10/17
to v8-users
There's no existing support for this. Pausing on breakpoints requires running in a debugger, which run-tests.py doesn't implement.

As a workaround, you could put an UNREACHABLE() into the source where you'd want to break and then run the test suite. run-tests.py will then print the command line for any failing test(s), which you can use to run that test in isolation within your debugger (after removing the UNREACHABLE() again).

Hope this helps,
Jakob

On Mon, Apr 10, 2017 at 10:31 AM, Early <zjc...@gmail.com> wrote:
Hi,I want to debug the v8 src code while runing the `tools/run-tests.py --outdir out.gn/x64.debug`.
So, is there any way to help me to pause on a breakpoint which was set on a cc file in v8/src, when I run the `tools/run-tests.py --outdir out.gn/x64.debug`?

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages