Skip to content

pustylnikov/react-native-debugger-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console image

Installation

npm install -g @anvilapp/react-native-debugger-server
npm install @anvilapp/react-native-debugger-client --save-dev

or

yarn global add @anvilapp/react-native-debugger-server
yarn add @anvilapp/react-native-debugger-client --dev

Usage

Run debugger server

rndebugger

or with params

rndebugger --port=8788 --socketPort=8787

Open http://localhost:8788/debugger in your browser

Add to index.js

import {runDebugger} from '@anvilapp/react-native-debugger-client'; // Add to the top
import {AppRegistry} from 'react-native';
import {name as appName} from './app.json';
import App from './App';

if (__DEV__) {
    const your_ip_address = '192.168.88.15:8787'; // default port is 8787
    runDebugger(your_ip_address);
}

AppRegistry.registerComponent(appName, () => App);

console.log('Something...');

Supported methods

console.clear
console.count
console.dir
console.dirxml
console.error
console.group
console.groupCollapsed
console.groupEnd
console.info
console.log
console.table
console.time
console.timeEnd
console.warn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published