Trongate Docs
switch to dark modeswitch to dark mode
»
»
How To Use Debug Mode

How To Use Debug Mode

Trongate's Model class has the ability to be set to 'Debug Mode'.  When Debug Mode is activated, it gives the developer an opportunity to view the raw SQL queries that are being produced by your app.  To set your Model to debug mode, open up Model.php.  Near the top of the file, you should see a private variable named $debug.  By default, this will be set to the value of false.  Simply change this value to true and Debug Mode will be enabled.  For example:

private $debug = true;

Did You Know?
PDO does not have the ability to fetch previously executed queries.  Therefore, strictly speaking, 'Debug Mode' makes Trongate display the database queries that your app is going to produce.
  

Video Tutorial - "Understanding Debug Mode"



HELP & SUPPORT

If you have a question or a comment relating to anything you've see here, please goto the Help Bar.

 
×