PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
WEBDEV proposes several methods for running the test of a site and for debugging it 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 is required for the remote computer.
Caution: This feature is not available for the 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 27270 by default and the ports of sessions are ports 27280 to 27289 by default. Indeed, the communication with the remote WEBDEV application server is done via 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. Select "Project .. Test mode .. Connect to a site and debug the connection".On the "Project" pane, in the "Test mode" group, expand "Test mode" and select "Connect to a site and debug the 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 requested 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).
Notes:
  • If the debug operation is performed on a development server, the elements currently 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. Select "Project .. Test mode .. Debug an existing connection".On the "Project" pane, 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 requested site and connection and validate.
  7. The project is in debugging mode.
Notes:
  • If the debug operation is performed on a development server, the elements currently 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 "Code" pane, "Debugger" option, click the icon shaped like a hand ( ).
  • A breakpoint can also be included in the code editor in front of the requested code line. The debugger will be automatically displayed when the corresponding line is run.

Stopping the test

Several methods can be used to stop the test:
  • 1st method: Close the browser. WEBDEV displays the editor that was used at the beginning of test.
  • 2nd method: In the editor, stop the debugger ( or SHIFT + F5).
Minimum required version
  • Version 12
Comments
Click [Add] to post a comment