Vscode-react-native: Run the application without debugging

Created on 11 May 2020  ·  9Comments  ·  Source: microsoft/vscode-react-native

Right now we only launch the application in debug mode. A couple developers have proposed having a way to run it in no debug mode as well.

enhancement

Most helpful comment

Yes, I'm expecting an option in launch.json.
I have a 6 different launch configs (dev/stage/prod x android/ios) and would like to have a way to launch them from the green play button in the Run tab but with no debugger when I don't need it.

All 9 comments

Hi @molant, the extension provides four Command Palette commands for launching an application:

  • Run Android on Emulator
  • Run Android on Device
  • Run iOS on Simulator
  • Run iOS on Device

These commands allow to start an application without debugging. Here you can find more info about the extension's commands.

But the Run commands actually start the application and attach the debugger, right?
I think what the developer was asking was to run the app and not attach the debugger.

@RedMickey I'm re-reading this 🤦‍♂️
I think this is again another issue related to #1278
I'll reach out to the developer see if they were expecting to have an option to do run without debugging when running F5.

Yes, I'm expecting an option in launch.json.
I have a 6 different launch configs (dev/stage/prod x android/ios) and would like to have a way to launch them from the green play button in the Run tab but with no debugger when I don't need it.

@molant, should we implement this feature for the stable version of the extension or for the preview one?

I haven't look at how the commands are implemented, but hopefully this is not a huge amount of work that can be implemented in stable and cherry-picked for preview?

@molant Not sure that it could be cherry-picked cleanly since the entry points for commands has changed, and they are in different files now because of architectural changes.

Let's do it in preview then

We added three scenarios in React Native Tools Preview which allow to run applications without debugging:

  • Run Android (Preview)
  • Run iOS (Preview)
  • Run Android Hermes (Preview) - Experimental

To try them out, please, install React Native Tools Preview version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevinnguy picture kevinnguy  ·  3Comments

bugproof picture bugproof  ·  5Comments

kralcifer-ms picture kralcifer-ms  ·  4Comments

webda2l picture webda2l  ·  3Comments

AlexandreLouisnard picture AlexandreLouisnard  ·  3Comments