How do I debug a WordPress plugin?

前端 未结 6 1059
栀梦
栀梦 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:15

    By using Visual Studio and a dev tools php debugger extension, you can actually debug it step by step rather than logging them and trying to figure out the variable values during the run time. There might be other alternatives as well.

    PS: It is not free :(

提交回复
热议问题