The Debug Bar Module in MokoCRM provides developers and administrators with real-time diagnostics about internal operations, including SQL queries, memory usage, execution time, and user environment. It’s designed to support troubleshooting, performance tuning, and module development. This module is intended for use in development or staging environments only.
The Debug Bar Module in MokoCRM provides developers and administrators with real-time diagnostics about internal operations, including SQL queries, memory usage, execution time, and user environment. It’s designed to support troubleshooting, performance tuning, and module development. This module is intended for use in development or staging environments only.
🧾 Enabling the Module
- Navigate to:
Home → Setup → Modules → Debug Bar - Click Activate
- Ensure MAIN_ENABLE_DEBUGBAR is set to
1
inconf.php
or via constant editor
🧪 Features Displayed
- Execution time of current page
- SQL queries executed, including count and timing
- Included files and memory footprint
- Logged-in user data
- Module hooks and permissions
- Environment variables and server details
🧩 Developer Use Cases
- Identify slow SQL queries and bottlenecks
- Trace hooks and module interactions
- Verify custom module behavior during development
- Compare performance before and after code changes
⚠️ Security and Stability
- Do not enable in production environments
- Exposes internal paths, user tokens, and system configuration
- Disable immediately after debugging sessions
📌 Best Practices
- Use only in test environments with restricted access
- Combine with browser developer tools for frontend profiling
- Keep an eye on memory usage and page load time while testing new modules
- Coordinate with Moko Consulting for performance audits or custom development review