-
Notifications
You must be signed in to change notification settings - Fork 268
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 do not get hit work with while debugging react native app #928
Comments
Hi @MarcoLLeite , thanks for reaching us. Could you please provide a small demo of your app for better understanding from our side? Also could you please fill up outputs using the template below?
Also it would be great if you add operational system on which you facing this. |
Hi @MarcoLLeite . Do you have a chance to look at this? |
Hi @MarcoLLeite . I'm closing this due to inactivity, feel free to reopen the issue and provide additional information if you still facing this problem. |
Hi @SounD120 , Sorry, but haven't got much time up until now. I have a create a new repo under my account "FinanceA", you can use test to replicate it (I have temporarely added you as a collaborator, so you can access it). |
Hi @MarcoLLeite I just tested your application and all breakpoints that I set were hit. Could you please add |
Hi @SounD120 , sent you an email with screenshots and txt with logs. |
Hi @MarcoLLeite . I recieved your clarification, thank you. I checked all the BPs that you sent to me and all of them works without problems, so my recommendation would be to try this sequence:
Please try this and say does it work for you? |
I'm having the same issue here. Debugger doesn't stop in any of breakpoints |
Hi @SounD120. Thats how I do it basically everyday. Now I went a few steps further and found something interesting: So I get some breakpoint hits, but they are clearly not alright. Like explained before, this is happening to my in Windows 7 machine on the app I gave you access to test with. It also happens on my work surface with Windows 10 and in all 4 surfaces of my 4 co-workers that also use vscode and react native and apparently to @macaetano too. I don't think there is anything else I can give you to help, but if there is, I am happy to do it |
@MarcoLLeite @macaetano Thanks a lot for your clarifications. Finally I was able to reproduce that, and now starting to work on a fix. As I found out |
Hi @MarcoLLeite . After further investigation I found out that there is no such problems on React Native 0.57.7 and 0.59.3, so could you please try to bump React Native dependencies as shown below:
and let us know if you still experience such problems? |
Hi @SounD120, Thanks for all your help. I had forgotten to let you know yesterday, but I got the Attach to Process working on VS Code on my Windwos 7 machine by bumping react-native to 0.59.3 (and kept react in version 16.6.3) and with the help of this: I had downgraded from 0.59.3 to 0.58.5, because 0.59.3 was not even building for me, so I went back to the version that seemed more stable (0.58.5), at least on the other project it was building. Soon I will also update to "react 16.8.3" too, unless it brings other issues. I will try to use "Debug Android" and try to upgrade react-native on my other project on thesurface with Windows 10 as soon as possible and will let you know (probably happening tomorrow). |
Hi @MarcoLLeite . Are you still experiencing issues with debugging or they are gone after update? |
Hi @SounD120. Thanks for the help... Yes, after upgrading to 0.59.3 the debugger seems to be back up hitting breakpoints... I haven't said anything because he are still resolving issues related with the upgrade. But that fixed the debugger anyway. Thanks. |
Just to point out a few more details of what happens: On my old version of react-native non of the debugger options would work, no breakpoints would get hit ('Debug Android' and 'Attach to Packager' options). |
@MarcoLLeite Thanks for information! I think we'll add information about possible problems with React Native 0.58.* in our documentation. |
I was having the same problem. Checking the output of the debug console led me in the right direction and I was able to fix the problem. Cheers @SounD120 |
Actual Behavior
Expected Behavior
Software versions
Outputs (Include if relevant)
PASTE OUTPUT HERE
PASTE OUTPUT HERE
PASTE OUTPUT HERE
The text was updated successfully, but these errors were encountered: