php - XAMPP-VM Mac OS Mojave wordpress debugging using XDebug

Someone please point me to a knowldge article or information onhow to setup Xdebug on XAMPP-VM Mac OS in particular.The

Someone please point me to a knowldge article or information on how to setup Xdebug on XAMPP-VM Mac OS in particular.

The dev configuration:

  • XAMPP-VM
  • Mac OS Mojave 10.14.6
  • VScode with PHP debug plugin
  • Wordpress installed on XAMPP-VM

Steps tried: Followed the instructions as per this link

  1. Copied Xdebug.so to the extension folder inside XAMPP-VM & configured php.ini for xdebug values as below

    [XDebug]
    xdebug.remote_enable = 1
    xdebug.remote_autostart = 1
    xdebug.remote_connect_back=on
    zend_extension="/opt/lampp/lib/php/extensions/xdebug/xdebug.so"
    
  2. Mapped the localhost port 9000 as below

  1. Added debug configuration to my VScode with php debug plugin installed.
  2. I have checked phpinfo which prints with xdebug (Just to make sure the plugin is enabled)

PS: I googled around and failed to get the solution. What am i missing here?

Someone please point me to a knowldge article or information on how to setup Xdebug on XAMPP-VM Mac OS in particular.

The dev configuration:

  • XAMPP-VM
  • Mac OS Mojave 10.14.6
  • VScode with PHP debug plugin
  • Wordpress installed on XAMPP-VM

Steps tried: Followed the instructions as per this link

  1. Copied Xdebug.so to the extension folder inside XAMPP-VM & configured php.ini for xdebug values as below

    [XDebug]
    xdebug.remote_enable = 1
    xdebug.remote_autostart = 1
    xdebug.remote_connect_back=on
    zend_extension="/opt/lampp/lib/php/extensions/xdebug/xdebug.so"
    
  2. Mapped the localhost port 9000 as below

  1. Added debug configuration to my VScode with php debug plugin installed.
  2. I have checked phpinfo which prints with xdebug (Just to make sure the plugin is enabled)

PS: I googled around and failed to get the solution. What am i missing here?

Share Improve this question edited Sep 18, 2019 at 8:33 NiRUS asked Sep 17, 2019 at 18:54 NiRUSNiRUS 1137 bronze badges 2
  • Hi and welcome to the site. As this site is not really about link distribution, but about problem solving, you might want to edit the question and explain how far you got, where you got stuck and how to reproduce your problem. Thanks. – kaiser Commented Sep 17, 2019 at 21:11
  • @kaiser update the question in detail. Please help! – NiRUS Commented Sep 18, 2019 at 2:35
Add a comment  | 

1 Answer 1

Reset to default 0

After days of struggle to enable debugging, I switched to MAMP free version which was a cakewalk.

For Step by step guide please follow this blog by Josh Buchea. Has a detailed walkthrough.


Hope this helps someone stuck on Mac with Xampp-VM like i did. Switch to MAMP free version. Happy coding Wordpress PHP

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745148572a4613759.html

相关推荐

  • php - XAMPP-VM Mac OS Mojave wordpress debugging using XDebug

    Someone please point me to a knowldge article or information onhow to setup Xdebug on XAMPP-VM Mac OS in particular.The

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信