ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing for Android
  • Overview
  • How to?
  • Debugging a project in Android
  • Remarks
  • InTestMode function
  • Add the debug application generated to your Firebase console
  • Unavailable features
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
All developers appreciate the possibility to debug an application directly on the device.
Sometimes, it is necessary to trace a feature that cannot be effectively emulated on a PC. Some examples include GPS location, embedded printer, scanner, access to phone contacts and calendar, photo and video recording, gestures (delete rows by swiping, etc.).
From version 25, WINDEV Mobile allows you to debug an under-development Android application directly on the device.
When the project is executed in "Debug on mobile device" mode, the Android application is generated with a specific name (GO <Project name>) and executed on the Android device connected to the development computer. You can add breakpoints in the WLanguage code. As soon as a breakpoint is encountered, the debugger will automatically be launched on the development computer.
How to?

Debugging a project in Android

To debug a project in Android:
  1. Test the project via the quick access buttons:
  2. If the application has never been generated, a warning message proposes to launch the Android application generation wizard.
    Note: The generation wizard can also be launched if important changes have been made in the application (addition of a Map control, etc.).
  3. The application is generated and launched on the Android device connected to the development computer in "Debugger" mode.
  4. The code editor is displayed in debugger mode on the development computer.
Remarks:
  • Stopping the debugging on the development computer does not close the application on the Android device.
  • The debugger is not available on an emulator.
  • The device must allow USB debugging. For more details, see Preparing the phone to test an Android application.
  • The Android Control Center allows you to see the traces and debug information of the application being tested.
Remarks

InTestMode function

InTestMode returns True in the following cases:
  • If the project is tested on the device from WINDEV Mobile.
  • If the <Project name>.go application is launched on the Android device.

Add the debug application generated to your Firebase console

The new debug application package generated by WINDEV Mobile has the same name as the original application package with the ".go" extension. For example, if the name of your application package is "com.wmsport.android", the name of the debug application package will be "com.wmsport.android.go".
If you use Google services that require enabling Firebase in your application (such as push notifications):

Unavailable features

Some features of the debugger are not available in this version:
  • F8 to change processes or events.
  • Run to cursor.
  • Set next statement.
  • Particular breakpoint modes (ignore intermediate breakpoints, ignore timers, etc.).
  • Automatic evaluations (current line of code identifiers, return values, local and global variables, members of the current class (this), HFSQL (Out, Error, etc.), WLanguage (Error, etc.)).
  • HFSQL information (data files, queries, etc.).
  • System information (critical sections, semaphores, etc.).
  • Save the results of a query.
  • Fix and continue.
  • Audit, profiler, memory.
  • Trace, error, exception.
  • Breakpoints in internal procedures.
  • Display values of non-simple variables (structures, xml, json, arrays, etc.)
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 09/23/2024

Send a report | Local help