Enter Amount:

Latest Forum Posts

Login Form






Lost Password?
No account yet? Register
Discussions
Welcome, Guest
Please Login or Register.    Lost Password?
Debugging Plugin (0 viewing) 
Wordpress plugin discussions
Go to bottom Post Reply Favoured: 0
TOPIC: Debugging Plugin
#211
frank (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Debugging Plugin 1 Month, 3 Weeks ago Karma: 0  
Hi, I like your plugin and it seems to work fine.
I am a newbee to php and wordpress. I set up example plugin (code) I found online and when i activate it I get the message that says that it cannont be activated due to a fatal error. Thats it, no line number, etc. Anyway, I thought I could put in little dumps to track the progress of the code until I can isolate the line number of the bad code or at least narrow down where the problem is taking place. My question is:
can I put lines of wp_pear_debug::dump("I am here"); type lines of code in my plugin? And if so where will the dumps be displayed?

Thank
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#212
admin (Admin)
Admin
Posts: 72
graph
User Online Now Click here to see the profile of this user
Re:Debugging Plugin 1 Month, 3 Weeks ago Karma: 2  
Hi, you can use wp_pear_debug::add("I am here");

One thing to note is that the call to wp_pear_debug will not be successful in the presence of syntax errors. So first you must ensure that your plugin php file and any included files can actually be parsed by the php interpreter. Please reply with your results.

I am glad you like the plugin. Please leave a rating and record the combination of the plugin version and wordpress version you are using. Thank you.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop