From c7eb47fd8ca77d4a6438debbc55048a140e97507 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Thu, 28 Apr 2016 07:01:49 -0700 Subject: [PATCH] Enable console.debug Summary: Apparently what we're using for console.trace is not really the same as what Chrome does (we don't log a stacktrace). Add `console.debug` with the same functionality as `console.trace`, just so we don't crash between browser and local execution. Reviewed By: davidaurelio Differential Revision: D3235053 fb-gh-sync-id: 4bed17ac8aa4c8c100f15cf0aabbc25101c913c1 fbshipit-source-id: 4bed17ac8aa4c8c100f15cf0aabbc25101c913c1 --- packager/react-packager/src/Resolver/polyfills/console.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packager/react-packager/src/Resolver/polyfills/console.js b/packager/react-packager/src/Resolver/polyfills/console.js index 5406db73e..27efc3209 100644 --- a/packager/react-packager/src/Resolver/polyfills/console.js +++ b/packager/react-packager/src/Resolver/polyfills/console.js @@ -471,6 +471,7 @@ function setupConsole(global) { log: getNativeLogFunction(LOG_LEVELS.info), warn: getNativeLogFunction(LOG_LEVELS.warn), trace: getNativeLogFunction(LOG_LEVELS.trace), + debug: getNativeLogFunction(LOG_LEVELS.trace), table: consoleTablePolyfill };