Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 2.07 KB

config-file-in-home-directory.md

File metadata and controls

58 lines (46 loc) · 2.07 KB

Config file in home directory

We could configure RNDebugger app in ~/.rndebuggerrc, the file used json5 as format, see the following default template:

{
  // Font family of the debugger window
  fontFamily: 'monaco, Consolas, Lucida Console, monospace',

  // Zoom level of the debugger window, it will override persited zoomLevel
  zoomLevel: 0,

  // Settings of debugger window,
  windowBounds: {
    // Size of the debugger window, it will override persisted size
    width: 1024,
    height: 750,

    // Show frame for debugger window
    // but due to https://github.com/electron/electron/issues/3647
    // so we can't have custom title bar if no frame
    frame: true,
  },

  // Auto check update on RNDebugger startup
  autoUpdate: true,

  // RNDebugger will open debugger window with the ports when app launched
  defaultRNPackagerPorts: [8081],

  // Env for
  // open React DevTools source file link
  // and enable open in editor for console log for RNDebugger
  editor: '',

  // Set default react-devtools theme (default is match Chrome DevTools theme)
  // but the default theme doesn't change manually changed theme
  // see https://github.com/facebook/react-devtools/blob/master/frontend/Themes/Themes.js to get more
  defaultReactDevToolsTheme: 'RNDebugger',

  // Enable Network Inspect by default
  // See https://github.com/jhen0409/react-native-debugger/blob/master/docs/network-inspect-of-chrome-devtools.md
  defaultNetworkInspect: false,
}

Other documentations