Jump to content
thirty bees forum
  • 0

How to get an variable displayed for debugging purposes?


Dolfijn

Question

It's a long time that I debugged PHP. I would like to do so to better understand what I'm doing wrong (as I often do 🙂). I'm  running in production at a hosting provider. I will only use it to analyse  backoffice code.

I  already switched debugging on and also did so in defines.inc.php. But a simple echo('Hello'); is never seen..?

How can I do this in TB 1.5?

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I finally opened a file and wrote  some php %variables to file. It works..

$file = fopen(_PS_ROOT_DIR_ . '/myLog1.txt', 'a');
 $my_own_message = strval($idShop);
 fwrite($file, $my_own_message);
 fclose($file);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...