Annotation Type OnDeviceDebug
On-device debugging build hints for iOS and Android.
Place this on your application's main class -- the class named by
codename1.mainName. An attribute you do not set is not written at all, so
the builder's own default applies; the values shown here are that default,
for reference.
Generated from com.codename1.build.shared.BuildHints by BuildHintCodeGenerator. Do not edit by hand -- edit the catalog and re-run scripts/gen-build-hint-annotations.sh.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanBoolean true/false defaults to false.booleanBoolean true/false defaults to false.Hostname or IP address the device-side listener dials to reach the desktop proxy.intTCP port onios.onDeviceDebug.proxyHostwhere the proxy is listening for the device.booleanBoolean true/false defaults to false.
-
Element Details
-
android
boolean androidBoolean true/false defaults to false. Whentrue, the generatedAndroidManifest.xmlis markedandroid:debuggable="true", R8/proguard is disabled, and the build is pinned to debug-only (android.releaseis forced off andandroid.debugis forced on) so a stray hint can't ship a release-signed APK that'sdebuggable="true". Pair with thecn1:android-on-device-debuggingMaven goal (or the bundled IntelliJ run configs) to install, launch, forward JDWP, and stream logcat through adb. Has no effect on builds that don't carry it -- release builds are unaffected. See the On-Device Debugging (Android) chapter for the full flow.- Default:
false
-
ios
boolean iosBoolean true/false defaults to false. Whentrue, the iOS build links a small JDWP listener thread (cn1_debugger) into the binary and the ParparVM translator emits source-line and locals metadata so a desktop proxy can serve the running app to any JDWP-speaking debugger. Has no effect on release builds. See the On-Device Debugging (iOS) chapter for the full flow.- Default:
false
-
iosProxyHost
String iosProxyHostHostname or IP address the device-side listener dials to reach the desktop proxy. Default127.0.0.1(correct for the native iOS simulator). For a physical device, set this to the developer laptop's LAN IP. Has no effect unlessios.onDeviceDebug=true.- Default:
""
-
iosProxyPort
int iosProxyPortTCP port onios.onDeviceDebug.proxyHostwhere the proxy is listening for the device. Default55333. Has no effect unlessios.onDeviceDebug=true.- Default:
55333
-
iosWaitForAttach
boolean iosWaitForAttachBoolean true/false defaults to false. Whentrue, the app blocks at startup until the proxy connects and the IDE tells the VM to continue. Useful when the breakpoint to investigate fires during app boot. Has no effect unlessios.onDeviceDebug=true.- Default:
false
-