MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / enableDebug

Function enableDebug

packager/react-packager.js:97–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95};
96
97function enableDebug() {
98 // react-packager logs debug messages using the 'debug' npm package, and uses
99 // the following prefix throughout.
100 // To enable debugging, we need to set our pattern or append it to any
101 // existing pre-configured pattern to avoid disabling logging for
102 // other packages
103 var debugPattern = 'RNP:*';
104 var existingPattern = debug.load();
105 if (existingPattern) {
106 debugPattern += ',' + existingPattern;
107 }
108 debug.enable(debugPattern);
109}
110
111function createServer(options: StrictOptions): Server {
112 // the debug module is configured globally, we need to enable debugging

Callers 1

createServerFunction · 0.85

Calls 2

enableMethod · 0.65
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…