Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints are inconsistent after fast refresh (hot reload) #49069

Closed
vzaidman opened this issue Jan 30, 2025 · 2 comments
Closed

Breakpoints are inconsistent after fast refresh (hot reload) #49069

vzaidman opened this issue Jan 30, 2025 · 2 comments
Labels
Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Impact: Bug The issue represents a bug somewhere Resolution: Fixed A PR that fixes this issue has been merged.

Comments

@vzaidman
Copy link
Contributor

vzaidman commented Jan 30, 2025

Description

Breakpoints are inconsistent after fast refresh (hot reload) and this becomes worse with every hot reload

Steps to reproduce

  1. Launch rn-tester
  2. Open the debugger from metro with j
  3. Fast refresh a few times by updating the code
  4. Set some breakpoint

Observe:
It sets many breakpoints for each breakpoint set in unexpected places / breakpoints jump / breakpoints are inconsistent

React Native Version

0.77.0

Screenshots and Videos

Screen.Recording.2025-01-30.at.15.42.39.mov
@vzaidman vzaidman added Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Triage 🔍 labels Jan 30, 2025
@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 30, 2025
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@vzaidman
Copy link
Contributor Author

vzaidman commented Jan 30, 2025

Fixed by facebook/metro@cd7a935 in metro v0.81.1.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Jan 30, 2025
@vzaidman vzaidman changed the title breakpoints are inconsistent after fast refresh (hot reload) Breakpoints are inconsistent after fast refresh (hot reload) Jan 30, 2025
@vzaidman vzaidman added Impact: Bug The issue represents a bug somewhere and removed Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Attention Issues where the author has responded to feedback. labels Jan 30, 2025
@cortinico cortinico added the Resolution: Fixed A PR that fixes this issue has been merged. label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Impact: Bug The issue represents a bug somewhere Resolution: Fixed A PR that fixes this issue has been merged.
Projects
None yet
Development

No branches or pull requests

3 participants