From 696b49e3b875ad9349b42bb9a354c8dfe4beb382 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 28 Mar 2017 18:50:16 -0700 Subject: [PATCH] RN: Refactor Chrome Debugger JS Summary: Refactors JavaScript in the `debugger.html` used to operate the Chrome Debugger. - Pull out all view-related logic into a global `Page` object. - Persist the dark theme across debug sessions using `localStorage`. Reviewed By: kassens Differential Revision: D4786235 fbshipit-source-id: ab959d1c95465a10b4538b14d9c87a51ae3b7078 --- local-cli/server/util/debugger.html | 288 ++++++++++++++++------------ 1 file changed, 164 insertions(+), 124 deletions(-) diff --git a/local-cli/server/util/debugger.html b/local-cli/server/util/debugger.html index 9e8bca4cb..d03ea7676 100644 --- a/local-cli/server/util/debugger.html +++ b/local-cli/server/util/debugger.html @@ -1,4 +1,4 @@ - + - - React Native Debugger @@ -178,17 +215,20 @@ connectToDebuggerProxy(); .dark a { color: #3b99fc; } + input[type=checkbox] { + vertical-align: middle; + }

- React Native JS code runs inside this Chrome tab. + React Native JS code runs as a web worker inside this tab.

-

Press ⌘⌥J to open Developer Tools. Enable Pause On Caught Exceptions for a better debugging experience.

+

Press ⌘⌥J to open Developer Tools. Enable Pause On Caught Exceptions for a better debugging experience.

Status: Loading...