jet icon indicating copy to clipboard operation
jet copied to clipboard

Can't turn off debug mode

Open compojoom opened this issue 6 years ago • 2 comments

When tunning packager-jet one isn't able to turn off debug mode off in the emulator.

The problem seems to come from here: https://github.com/invertase/jet/blob/master/lib/react-native/index.js#L16

if this is false, then one can turn on the debug mode on, but at some point it also turns off on its own?

compojoom avatar Jan 25 '19 09:01 compojoom

Hey

jetNode is false when the debugger is not connected to the nodejs instance, it forces itself to debug by calling the native method called debug on android/ios.

Can add in some sort of toggle for this to disable the behavior I guess, though this would mean tests won't run whilst this toggle is on as they can only run during debug.

Thoughts?

Salakar avatar Jan 29 '19 11:01 Salakar

The problem is that I don't use this to only write tests. I'm launching the packager with chrome's debugger as we need to deal with the redux store. And I need to have several emulators open in order to see how the app behaves for different users.

When debug mode is on on all emulators - I can only use the app with one emulator...

compojoom avatar Jan 29 '19 11:01 compojoom