View Full Version : Log file location vB5
iref2010
08-06-2016, 10:42 AM
Hey Guys,
I wish to print some variables in function for debugging purpose. I tried var_dump() but I don't understand where it is printing. My debug mode is also On.
Replicant
08-06-2016, 12:06 PM
var_dump() will print to the screen. Usually, right at the top when you load the page. Using print_r() may give you better results as it is more readable.
Paul M
08-07-2016, 12:11 PM
vbstop($varname);
should work.
vbstop($varname,0,0);
Will print the information and carry on running the code.
I use both of these all the time.
iref2010
08-08-2016, 09:12 AM
Thank you!
It worked.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.