whatever debugging code you want to run, e.g. Setting this Debug System option also sets the global variable JDEBUG to true, so that you can control whether to log messages by testing this variable: Once enabled, the output of the debug plugin will be displayed at the bottom of each page. The Debug Console can be enabled from the Joomla! Global Configuration, System tab, by setting the Debug System option to Yes. This extension works like the PHP command var_dump but formats the output in a more readable fashion. If all options are correct, you may run your script in debug mode by clicking on the Debug button (F8).Īn often handy extension that can be found in the JED is the J!Dump extension that will allow you to dump variable, stack traces, and system information into a popup window at run time. Then you need to set options in the Run/Options menu to use HTTP-server and the directory in which your script is located. It is best to set profiler_enable to off. Add the following lines to the php.ini file: Instructions for installing it are available at Setting up your workstation for Joomla! development, or you can watch this video on setting up Eclipse and Xdebug:Īnother option is the PHP Expert editor with an installed extension for debugging. Many Joomla! developers use the Eclipse IDE.
0 Comments
Leave a Reply. |