4
VS Remote Debugging
kmelmon редактировал(а) эту страницу 2020-06-04 15:44:22 -07:00
Note: Work is in progress enabling this scenario! See: https://github.com/microsoft/react-native-windows/issues/5112
How to remote debug Playground
- On your dev machine, open packages/playground/windows/Playground.sln
- On your dev machine, Run the metro bundler by doing yarn start --host devMachineName
- On your target machine, run MSVSMon. This can be downloaded from here.
a. I haven’t been able to figure out authentication so once you run msvsmon, click on Options and select no authentication. - Right click on the Playground project, Properties, Debugging
a. Select Remote debugging, and enter the IP of the debug target
b. In the command line arguments textbox, enter devMachineName:8081
c. In the protocol dropdown, select no authentication - F5! This will build your playground app, and deploy to the target machine.
- On the target, press Load. This will communicate back to the dev machine bundler and launch the web debugger on the dev machine, and serve the pages back to the app running in the target.