Skip to content
Permalink
Browse files

RN: Clear Debug Console on Reload JS

Summary:
Clears the debug console whenever the React Native JS is reloaded.

NOTE: This respects "Preserve log" in Chrome by default.

Reviewed By: jingc

Differential Revision: D3409713

fbshipit-source-id: ce215e3125cf43ab3ea5811c707fab9dfa4bcbb3
  • Loading branch information
yungsters authored and Facebook Github Bot 9 committed Jun 9, 2016
1 parent 67002e8 commit b03a725447cb0c12756d6c528cc4f6cb553c37fc
Showing with 1 addition and 0 deletions.
  1. +1 −0 local-cli/server/util/debugger.html
@@ -72,6 +72,7 @@
// Special message that asks for a new JS runtime
if (object.method === 'prepareJSRuntime') {
shutdownJSRuntime();
console.clear();
createJSRuntime();
ws.send(JSON.stringify({replyID: object.id}));
setStatus('Debugger session #' + object.id + ' active.');

0 comments on commit b03a725

Please sign in to comment.
You can’t perform that action at this time.