title: How to debug php code while developing wordpress plugins?
body: <p>I started developing few WordPress plugins on my own. While developing a plugin i am using different hooks(wp_head, add_shortcode, etc) function in the plugin. Can anyone advice me an easy and convenient way to <strong>debug a WordPress plugin</strong> or is there any other way to develop a WordPress plugin easily. Thanks in advance.  </p>