Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Aug 2016, 13:42
iref2010 iref2010 is offline
 
Join Date: Jun 2010
Log file location vB5

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.
Reply With Quote
  #2  
Old 06 Aug 2016, 15:06
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Real name: Mel
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.
__________________
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
  #3  
Old 07 Aug 2016, 15:11
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
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.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #4  
Old 08 Aug 2016, 12:12
iref2010 iref2010 is offline
 
Join Date: Jun 2010
Thank you!

It worked.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Location display if author has no location JJR512 vBulletin 2.x Full Releases 16 28 Apr 2003 10:19


Tags
debug


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:41.

Layout Options | Width: Wide Color: