Debugger in Venddor IO

Venddor IO's Integrated Debugger

Venddor IO boasts an intuitive built-in debugger, offering users an in-depth look into profiling, logging, and configuration data right out of the box.

This handy tool lets you delve into the intricacies of HTTP requests, SQL queries, and the dynamics of template loading for any segment of your storefront or administrative panel.

Enabling the Debug Mode

To harness the debugger, head to the Administration panel. Then, simply append the debug parameter to the URL, making it look like:

http://your-venddor-io-store.com/admin.php?debug

This action activates the debugger in the customer area for the ongoing browser session.

Spot the bug icon at the top right of your screen. Clicking on it toggles the debugger sidebar on and off. For a keyboard shortcut, just press Ctrl + Alt + D.

For a constant debug mode in both the storefront and the admin panel, set the DEBUG_MODE constant to true in your config.php or local_conf.php:

define('DEBUG_MODE', true);

A word of caution: Avoid using define('DEBUG_MODE', true); on an active store. This could inadvertently give your visitors access to sensitive debug data.

Navigating the Debugger Sidebar

Server:

This section furnishes you with vital system insights alongside details on the PHP and its associated modules: be it versions, configurations, or path details.

Request:

This tab unravels the mysteries behind the most recent HTTP requests, corresponding server responses, and cookie values.

Config:

Here, you get values pulled directly from the configuration files, namely config.php and local_conf.php.

Settings:

This section displays current setting values directly fetched from the database, specifically from the venddor_settings_* tables.

Runtime:

Get insights related to the script in execution.

SQL:

Peek under the hood to see the SQL queries executed during a page's load, complete with the execution time for each. This section also provides a dedicated tab for custom SQL queries.

Logging:

Dive deep into memory utilization data, loaded file counts, executed SQL queries, and detailed timestamps for every phase of a page's load.

Templates:

Offering a bird's-eye view of the template framework, this tab details the template structure and underlying data for the page.

You'll discover a hierarchical structure of templates accompanied by a list of variables each template utilizes.

Using the Debugger Effectively

The debugger is an invaluable tool for troubleshooting and optimizing your Venddor IO installation. Here are some common use cases:

If a page is loading slowly, the SQL tab can help identify which queries are taking the most time. You can then optimize these queries or implement caching to improve performance.

Conclusion

In a nutshell, Venddor IO's debugger acts as a comprehensive tool, providing a crystal-clear look into your site's operations, making it an invaluable asset for both developers and administrators.