Debugging toolbar/fr

La barre d'outils de débogage est un utilitaire pour les développeurs qui affiche des informations de débogage sur une page MediaWiki en bas de la fenêtre du navigateur. Vous pouvez l'activer avec la variable dans LocalSettings.php :

La barre d'outils
La barre d'outils comprend plusieurs sections sur lesquelles vous cliquez pour développer ou réduire :


 * [[File:debugging-toolbar.png]]

The sections are:


 * Console: An area where MediaWiki code can write messages. Superior to echoing text to the browser.
 * Queries: A list of SQL queries executed on that page, with timing.
 * Debug log: A list of the debug messages printed during the page execution.
 * Request: HTTP request information.
 * PHP includes: A list of included PHP files during the page execution.
 * The rest: Statistics about the software versions, execution time, and memory used.

Click any section to expand it and see the data. Click it again to close. Use your browser's Find feature to search the data.

The MediaWiki and PHP links lead to their respective web sites (http://www.mediawiki.org and http://www.php.net).

Logging messages to the console
See the file  for available functions. Here are a few useful examples:


 * Send an arbitrary message to the Console
 * Send an arbitrary message to the Console


 * Send a warning message to the Console
 * Send a warning message to the Console


 * Send a message to the Console about deprecated functionality, including a backtrace
 * Send a message to the Console about deprecated functionality, including a backtrace


 * Execute the given SQL and report its time in the Queries section.
 * Execute the given SQL and report its time in the Queries section.