Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging while app is not running

Is there a way to debug (breakpoints) my app via Xcode if it's not running already and was launched as a result of swiping a remote notification from the locked screen?

Obviously I can't just add breakpoints and expect execution to halt since I need to fire the app via Xcode in order to debug?

like image 971
ppp Avatar asked Feb 03 '16 10:02

ppp


People also ask

How do I enable debug on apk?

However, you need to make sure you're using an APK with debugging enabled. To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar.

What is debug mode in app?

USB Debugging allows an Android device to communicate with a computer that's running the Android SDK in order to use advanced operations. When you develop Android apps, you have to install the Android Software Developer Kit (SDK) on your computer.

What does USB debugging mode do?

USB Debugging mode is a developer mode in Samsung Android phones that allows newly programmed apps to be copied via USB to the device for testing. Depending on the OS version and installed utilities, the mode must be turned on to let developers read internal logs.


1 Answers

You can launch the app in Xcode but set the scheme to wait for an external launch trigger. In this mode Xcode will watch and wait for something else to open the app.

To do this, edit the scheme, select the info section and then select Wait for executable to be launched.

like image 156
Wain Avatar answered Oct 01 '22 22:10

Wain