Running without remote debugging #10411
-
I'm noticing a few performance issues while the remote debugging is connected, and wanted to run without it. Hot-reloading the app from the developer menu often crashes the app, and the following command still opens the debugger:
Any advice? Update: Clicking 'Disable remote debugging' also freezes the app. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Lots of issues you're mentioning here.
Well that's no good. Do you have a call stack? Or is this overlapping with you not having the remote debugger?
I know this is happening as you're trying to disable debugging, but have you put the app in the debugger to know why it's frozen? But yes, remote debugging is slow :( |
Beta Was this translation helpful? Give feedback.
-
why |
Beta Was this translation helpful? Give feedback.
-
The --remote-debugging flag works by passing a command line arg to the application. Its up to the application to handle that argument. The default implementation of If you are handing activation differently, or not using |
Beta Was this translation helpful? Give feedback.
The --remote-debugging flag works by passing a command line arg to the application. Its up to the application to handle that argument.
The default implementation of
ReactApplication
handles the argument here:https://github.com/microsoft/react-native-windows/blob/f859b4ccfa07c173dfb1b4a48286342b0d56dbdf/vnext/Microsoft.ReactNative/ReactApplication.cpp#L153C20-L153C20
If you are handing activation differently, or not using
ReactApplication
, then you would have to do your own command line argument handling. You'll also see in the linked code, that the argument is only handled in DEBUG builds. If you just want to disable remote debugging, you can do that in your own code by setttingInstance…