ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Test / WEBDEV test
  • Overview
  • Configuring the remote WEBDEV application server
  • Starting and debugging a site on a remote application server
  • Debugging a site currently used on a remote application server
  • Starting the debugger and stopping the test
  • Starting the debugger
  • Stopping the test
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WEBDEV offers several methods to test and debug a site on the development computer (see The different types of WEBDEV tests). However, in some cases, you may have to debug the site directly on the user computers.
From your office in London, you have the ability to debug a site running on a Web server in Taiwan. The debug operation is done without having to go anywhere, on the final configuration directly.
Two features are available:
  • Starting and debugging the site on a remote application server.
  • Debugging a site currently used on a remote application server.
For these two features, a specific configuration of the remote computer is required.
Caution: This feature is not available for sites deployed on a Linux application server.
Configuring the remote WEBDEV application server
To debug a dynamic WEBDEV site on a remote application server, you must:
  • open the main port and the ports of sessions if a firewall is used. The main port is port 27271 by default and the ports of sessions are ports 27280 to 27289 by default.
    These ports must be open because the communication with the remote WEBDEV Application Server is established using sockets.
    The ports used can be modified in the WEBDEV application server ("Configuration" tab of the administrator).
  • allow the remote debugging on the WEBDEV application server. To do so, check "Allow the remote debugging" in the "Configuration" tab of the administrator.
Starting and debugging a site on a remote application server
To run and debug a site on a remote application server:
  1. Open the relevant project in WEBDEV.
  2. Check the configuration of the remote server.
  3. On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Connect to a site and debug connection".
  4. In the window that is displayed, enter:
    • the name or IP address of the remote WEBDEV application server.
    • the main debugging port.
  5. Click the "Refresh" button. The names of the sites that can be debugged are displayed.
  6. Select the desired site and validate.
  7. The site is started in debug mode on the development computer. You can handle the site and monitor the code run via the debugger (by inserting breakpoints in the code sections that cause problems for example).
Remarks:
  • If the debug operation is performed on a development server, the elements being edited are run and InTestMode returns True.
  • If the debug operation is performed on a WEBDEV application server for deployment, the code run is the code found in the library (WDL file). Therefore, the code of the current project in the editor and the code of the site can become out-of-sync: the out-of-sync code is highlighted in pink during the debug operation. InTestMode returns True.
Debugging a site currently used on a remote application server
To debug a site already started on a remote application server:
  1. Open the relevant project in WEBDEV.
  2. Check the configuration of the remote server.
  3. On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Debug an existing connection".
  4. In the window that is displayed, enter:
    • the name or IP address of the remote WEBDEV application server.
    • the main debugging port.
  5. Click the "Refresh" button. The names of the sites that can be debugged are displayed, with the identifier of the connected client.
  6. Select the desired site and connection and validate.
  7. The project is in debugging mode.
Remarks:
  • If the debug operation is performed on a development server, the elements being edited are run and InTestMode returns True.
  • If the debug operation is performed on a WEBDEV application server for deployment, the code run is the code found in the library (WDL file). Therefore, the code of the current project in the editor and the code of the site can become out-of-sync: the out-of-sync code is highlighted in pink during the debug operation. InTestMode returns True.
Starting the debugger and stopping the test

Starting the debugger

To start the debugger while running the test of the site, use the editor:
  • In the "Debugger" tab, click "Pause" ().
  • A breakpoint can also be included in the code editor in front of the desired line of code. The debugger will be automatically displayed when the corresponding line is run.

Stopping the test

There are multiple methods to stop the test:
  • 1st method: Close the browser. WEBDEV displays the editor open when the test was started.
  • 2nd method: In the editor, stop the debugger ( or Shift + F5).
Minimum version required
  • Version 12
Comments
Click [Add] to post a comment

Last update: 06/08/2022

Send a report | Local help