Skip to content

Running without remote debugging #10411

Answered by acoates-ms
cjhines asked this question in Q&A
Discussion options

You must be logged in to vote

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 settting Instance…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chrisglein
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisglein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants