Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Debugging application_top.php


ksl8313

Recommended Posts

Posted

Hello:

I'm having problems with debugging application_top.php.

Suppose that I were to echo or print something from application_top.php, then where would the output go to?

I'm specifically having trouble with when I add product from product_info.php, then I can't seem to get its attributes in proper places.

Please give me tips on debugging,

thank you!

Posted

o/p goes to the browser but you may want to stop the script after the print or echo is set, as headers may sent afterwards that could either hide the previous content or the script itself wont execute properly.

Posted

so the output from application_top.php goes to the browser as well?

what would be syntax to stop the script? because whatever I tried to echo / print, wouldn't show up.

Please help.

THanks!!!

Posted

try something like

die($some_var);

 

then you could enhance it, php has several debug functions like var_dump

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...