PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Debugging a page in PHP
  • Debugging a project in PHP
  • Limitations
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
A site generated in PHP can be debugged in standard WEBDEV mode: The PHP site is simulated in "dynamic WEBDEV pages" mode. You have the ability to test the quality of the WLanguage code before generating the corresponding PHP code.
The principle is straightforward: when a page or a project is started in "PHP debug" mode, the corresponding dynamic pages in WEBDEV are run. You have the ability to add breakpoints into the WLanguage code. The debugger is automatically started as soon as a breakpoint is reached.
How to proceed?

Debugging a page in PHP

To debug a page in PHP:
  1. Select "Project .. Test mode .. Debug the PHP project in simulation mode". This menu option must be selected (a checkmark must be displayed in front of the option).On the "Project" pane, in the "Test mode" group, expand "Test mode" and select "Debug the PHP project in simulation mode". This menu option must be selected (a checkmark must be displayed in front of the option).
  2. Run the test of your page ( ).
  3. Validate the warning message if necessary.
The test of the page is run by the dynamic WEBDEV sever simulating the PHP mode. The WLanguage code is directly run by the WEBDEV application server without being converted to PHP.
The breakpoints found in the code are used to start the debugger.
Note: This test mode is specific. Differences can be noticed during the actual use in PHP. See "Limitations" for more details.

Debugging a project in PHP

To debug a project in PHP:
  1. Select "Project .. Test mode .. Debug the PHP project in simulation mode". This menu option must be selected (a checkmark must be displayed in front of the option).On the "Project" pane, in the "Test mode" group, expand "Test mode" and select "Debug the PHP project in simulation mode". This menu option must be selected (a checkmark must be displayed in front of the option).
  2. Run the test of your project ( ).
  3. Validate the warning message if necessary.
The test of the project is run by the dynamic WEBDEV server simulating the PHP mode. The WLanguage code is directly run by the WEBDEV application server without being converted to PHP.
Caution: The home page of the site must be a PHP page.
The breakpoints found in the code are used to start the debugger.
Note: This test mode is specific. Differences can be noticed during the actual use in PHP. See "Limitations" for more details.
Limitations
During a test in "PHP debug" mode:
  • Test of a PHP site: the home page of your PHP site must be a PHP page.
  • In debug mode, the PHP code directly entered into the site is not run.
  • Access to the MySQL databases:
    • The PHP directly accesses the MySQL databases. In debug mode, the test of the site being run in dynamic WEBDEV mode, the native MySQL access is required (as well as the MySQL client layer).
    • Using HExecuteQuery and HExecuteSQLQuery: In PHP, the code of the SQL query is not checked by the HFSQL engine. In debug mode, the SQL code is automatically checked and re-interpreted by the HFSQL engine. Differences of behavior can be noticed. A query that operates in PHP may not operate in debug mode.
  • You cannot navigate between PHP pages and static pages.
  • Differences of operating mode may be noticed:
    • the generated images are not supported: the drawing functions are not supported properly in simulation mode.
    • the management mode of URLs differs in dynamic WEBDEV mode and in PHP mode: some direct operations performed on a URL (via ..URL for example) may not operate in debug mode.
  • An error will be displayed during the test if a WLanguage function is supported in PHP and not in dynamic WEBDEV mode.
Minimum required version
  • Version 12
Comments
Click [Add] to post a comment