How do I debug a WordPress plugin?

前端 未结 6 1054
栀梦
栀梦 2020-12-03 04:19

I\'ve recently inherited a WordPress plugin that has a few bugs in it. My problem is that I\'m also new to WordPress and I don\'t know how to log debug messages so that I ca

6条回答
  •  借酒劲吻你
    2020-12-03 05:04

    The general PHP debugging strategy is to use print_r( $var ) statements and refresh the page. Simple and easy. If you want to step into the code Xdebug is what you want to install.

提交回复
热议问题