tags:

views:

37

answers:

2

A webhook is sending me a POST, but i want to do some debugging. currently i'm looping over the array and then sending a mail() to myself instead of printing (because how could i see what's printed to the page?), but I'm betting there's a more efficient way.

Any suggestions?

+1  A: 

There are multiple options for debugging:

  1. Use a debugger with an IDE, like netbeans. This will run the application and figure out where things are going wrong.
  2. Use logfiles of your server, or generated by application exceptions
  3. Collect your debug information with a buffer and put it in a file in your public directory. Overwrite with every new request.
+1  A: 

http://www.postbin.org