Use Nette Tracy to debug code in Scriptcase

To integrate the Tracy debugger into Scriptcase, follow these steps:

  1. Enable mod_rewrite in Apache.

  2. Place the tracy folder in the server’s root directory (e.g., /var/www/html/tracy). Attached file: tracy.zip

  3. On php.ini
    error_reporting = E_ALL
    display_errors = On
    display_starup_erorrs = On

  4. Place the .htaccess file in the folder:
    /var/www/html/scriptcase/app/
    with the content:
    php_value auto_prepend_file "/var/www/html/tracy/index.php"

This integrates the Tracy debugger, which adds a bar to the bottom right corner.

Code to test:
image

echo "Integrating Tracy into Scriptcase";

$var = 1;
$trac_var['Line 5'] = $var;

$another_var = "Hello World ".$var;
bdump($another_var, "Another var value");

$var++;
$trac_var['Line 11'] = $var;

bdump($trac_var, "\$var");
bdump($_GLOBLAS, "GLOBALS");
bdump($this, "THIS");

Result

More information at