-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remote native debugging Playground with web debugging doesn't work anymore #5112
Comments
See this PR which originally fixed Playground: |
Also, update this wiki page when this is fixed: |
I can pick this up. |
The PR only fixes remote debugging in the Playground app and doesn't address remote debugging with CLI or with Visual Studio for the template apps, so I'm reopening the issue. |
@nasadigital thanks for the work done so far! Can you make sure this wiki page is up to date as you complete the work: |
We expect that the parameter is there but the CLI needs to pass it through. |
@rectified95 did this PR fix the issue? #5062 |
@NickGerleman Not sure I quite understand the issue here, but that PR basically passes the CLI argument to ReactApplication.cpp, where we set: |
I looked at #5062, this isn't quite enough to fix the remaining issue being tracked here. @rectified95 The overall issue being tracked here is to be able to launch the app from Visual Studio directly onto a VM rather than on the local machine, but also use web debugging. This requires the app to fetch the bundle from the dev machine rather than localhost:8081, as metro won't be running on the VM. This was fixed for the Playground app in #5327. |
I'm not convinced by the idea of the --remote-debugging CLI arg. It only works in the most basic of app setups and relies on specific app code. - It's also not an option that is part of the CLI on iOS or Android. I think I'd prefer to add UI to the debug menu similar to what iOS at least has (haven't checked android), which allows you to configure what bundler settings you connect to on the instance directly at runtime. |
We added some support for remote debugging the Playground app, see:
https://github.com/microsoft/react-native-windows/wiki/VS-Remote-Debugging
However this technique doesn't work anymore. I debugged this and found two issues:
We should find a way to re-enable this. We should also think about how to enable remote debugging for CLI apps when we fix this - ideally whatever we do would also work for template apps.
The text was updated successfully, but these errors were encountered: