jhen0409 / jhen0409/react-native-debugger

Devtools disconnects and crashes as soon as menu is opened

Open
#494 18 comments 28 reactions 0 assignees View on GitHub
bug integration/react-devtools
Dominant language
JavaScript
Stars
10.4k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

Per title, if I am debugging with react-native-debugger and press ctrl+m to open the dev menu in the Android emulator react-native-debugger instantly loses connection. This makes it impossible to use the inspector to select elements.

```
C:\Users\imagi\AppDa…st\standalone.js:48 [React DevTools] Only one connection allowed at a time. Closing the previous connection
C:\Users\imagi\AppDa…st\standalone.js:48 [React DevTools] Connected
C:\Users\imagi\AppDa…st\standalone.js:48 [React DevTools] Connection to RN closed
C:\Users\imagi\AppDa…st\standalone.js:48 [React DevTools] Error calling listener
{event: "operations", payload: Array(6546)}
C:\Users\imagi\AppDa…st\standalone.js:48 Uncaught Error: Cannot add node 1 because a node with that id is already in the Store.
at C:\Users\imagi\AppDa…st\standalone.js:48
at t.value (C:\Users\imagi\AppDa…st\standalone.js:48)
at C:\Users\imagi\AppDa…st\standalone.js:48
at C:\Users\imagi\AppDa…st\standalone.js:48
at Array.forEach ()
at t.e.onmessage (C:\Users\imagi\AppDa…st\standalone.js:48)
at t.n (C:\Users\imagi\AppDa…st\standalone.js:40)
at t.emit (events.js:210)
at t.K (C:\Users\imagi\AppDa…ist\standalone.js:8)
at t.emit (events.js:210)
at t.value (C:\Users\imagi\AppDa…ist\standalone.js:8)
at t.value (C:\Users\imagi\AppDa…ist\standalone.js:8)
at t.value (C:\Users\imagi\AppDa…ist\standalone.js:8)
at t.value (C:\Users\imagi\AppDa…ist\standalone.js:8)
at doWrite (_stream_writable.js:431)
at writeOrBuffer (_stream_writable.js:415)
```
React Native Debugger app version: 0.11.0
React Native version: 0.62.1
Platform: Andrew
Is real device of platform: No
Operating System: Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.