ReactNative chrome debug

macでreact-native run-android -> cmd + m -> Debug JS Remotely

androidのエミュレーターで、ReactNativeアプリを起動して、chromeでデバックしようとしたら

Unable to connect with remote debugger

error

動かすには

Dev settings -> Debug server host & port for device -> localhost:8081を入力

dialog
dialog

dialog

デバックする

cmd + m -> Debug JS Remotely + chromeでhttp://localhost:8081/debugger-ui/を開く