mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-30 01:43:36 +08:00
This CL introduces the synchronization point for setting breakpoints on new scripts using instrumentation breakpoints. Instrumentation breakpoints will trigger at the first statement of a newly run script. Afterwards we wait for all resources that we need to set a breakpoint (if one is cached for that particular script), set it, and resume. Note: this will not correctly synchronize the case where we just opened DevTools or just created a new target, as at this point some scripts might have started running. For this, we need to synchronize the Debugger.enable call, which is something that is left to take care of. Bug: chromium:1229541, chromium:1133307, chromium:1300509 Change-Id: I44e9b053a7cf64cc1f477a68ce9389cd92a1d05d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3470237 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>