question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues while debugging with chrome

See original GitHub issue

Description

The same code behaves differently when debug mode is active (Android). I haven’t tested iOS yet. The debugger is React Native Debugger 0.12.1.

The example is based on reanimated-2-playground, where I simply:

The App code simply is a mix of the navigation drawer MWE and the reanimated2 initial playground content.

Clean up step

rm -rf node_modules yarn.lock && yarn install && cd android && ./gradlew clean && cd - && yarn android

I also removed ~/.gradle completely several times to make sure nothing strange happens here.

Expected behavior

In both normal and debug mode, the app should render this:

Screenshot 2022-02-10 at 12 32 34

and this:

Screenshot 2022-02-10 at 12 33 05

In the original playground screen, I expect animations to happen if I click toggle

Actual behavior & steps to reproduce

Saddly, when the debugger is active, I get a white screen.

If I remove the Drawer navigator, the app shows as expected BUT there are no animation when I click “TOGGLE”, the black bar blinks to its next width directly.

The code for this second test is basically the playground one:

export default function App() {
  return <AnimatedStyleUpdateExample />;
}

Snack or minimal code example

This repo:

git clone https://github.com/cglacet/reanimated2-issue-demo.git

Package versions

name version
react-native 0.67.2
react-native-reanimated 2.4.1
NodeJS 16.13.0
Java 11.0.11 2021-04-20
Gradle 7.2

Affected platforms

  • Android
  • iOS
  • Web

Device used

  • Emulator (qemu) with a Pixel 5 (api 30)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

2reactions
sanjay628commented, Feb 10, 2022

Hello Team ,

I am facing multiple issue like debugger is not working , on android when app is in debug mode it works but in release it wont work with updates as well as older version are also having the same issue now.

@react-navigation/drawer”: “^6.1.8”,

0reactions
mutablestudiocommented, Dec 9, 2022

UPDATE: for my specific issue with iOS, it was resolved by enabling Hermes in the pod file, then doing pod install. Without this the network requests to localhost:8081/debugger-proxy will be in pending state and never resolve (you can view this in the network tab of the chrome debugger). This also switched my debugger to Flipper. I could find no mention anywhere in any of the reanimated 2.x docs about whether Hermes is required or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues: Find and fix problems - Chrome Developers
# Open the Issues tab · Visit a page with issues to fix, such as samesite-sandbox.glitch.me. · Open DevTools. · Click the Open...
Read more >
Troubleshoot Chrome network issues - Google Support
The network logs are useful if you need to debug network problems, analyze performance, or contact support about a problem. If an issue...
Read more >
Chrome javascript debugger breakpoints don't do anything?
I fixed my breakpoints problem with "Restore defaults and reload". It's located in the Chrome Developer Tools, Settings, Restore defaults ...
Read more >
Chrome becomes unresponsive while debugging
No problem. At times the Chrome page becomes unresponsive. It seems like it only occurs after hitting breakpoints. The browser window can be...
Read more >
Debugging in the browser - The Modern JavaScript Tutorial
Debugging in the browser · The “Sources” panel · Console · Breakpoints · The command “debugger” · Pause and look around · Tracing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found