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.
Hi @molant, the extension provides four Command Palette commands for launching an application:
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:
To try them out, please, install React Native Tools Preview version.
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.