AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar en PHP
  • Overview
  • How to?
  • Debugging a page in PHP
  • Debugging a project in PHP
  • Limitations
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
A PHP-generated site can be debugged in WEBDEV Classic mode: the PHP site is simulated in "WEBDEV dynamic pages" mode.. You have the ability to test the quality of the WLanguage code before generating the corresponding PHP code.
The principle is simple: when a page or project is launched in "PHP debugging" mode, the corresponding dynamic WEBDEV pages are executed.. You can add breakpoints in the WLanguage code. The debugger is automatically started as soon as a breakpoint is reached.
How to?

Debugging a page in PHP

To debug a page in PHP:
  1. On the "Proyecto" tab, in the "Modo de prueba" group, expand "Modo de prueba" and select "Debug 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. WLanguage code is executed directly 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 to. Differences can be noticed during the actual use in PHP. For more details, see "Limitations".

Debugging a project in PHP

To debug a project in PHP:
  1. On the "Proyecto" tab, in the "Modo de prueba" group, expand "Modo de prueba" and select "Debug 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. WLanguage code is executed directly by the WEBDEV Application Server without being converted to PHP.
Attention: The site's home page must be a PHP page.
The breakpoints found in the code are used to start the debugger.
Note: This test mode is specific to. Differences can be noticed during the actual use in PHP. For more details, see "Limitations".
Limitations
During a test in "PHP debug" mode:
  • Testing 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:
    • PHP directly accesses MySQL databases. The native MySQL access (and the MySQL client library) is required in debug mode, as the site is tested in dynamic WEBDEV mode.
    • Use of HExecuteQuery and HExecuteSQLQuery functions: In PHP, the SQL query code 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:
    • generated images are not managed: drawing functions are not correctly managed in simulation mode.
    • URLs are not handled in the same way in dynamic WEBDEV mode as in PHP mode: some direct URL manipulations (e.g. with the URL property) may not work 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.
Versión mínima requerida
  • Versión 12
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local