![]() This can help to identify areas outside of network speed that are contributing to long page load times and high server memory usage. The Profile Information tab from the debug plugin provides information about the time and memory taken to render the page based on each of the application events. Examples include variables defining the current search filters the user has defined, the pagination point in a list of records, etc. This section displays state variables which are stored in the Session data to enable them to be 'remembered' across HTTP requests. This plugin provides information that can assist in debugging and improving the performance of your component. JLog::add('my debug message', JLog::DEBUG, 'my-debug-category') 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. |