{"id":57924,"date":"2023-08-19T17:50:06","date_gmt":"2023-08-19T12:20:06","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=57924"},"modified":"2023-08-30T17:58:40","modified_gmt":"2023-08-30T12:28:40","slug":"how-to-install-xdebug-3-on-macos","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/","title":{"rendered":"How to install Xdebug 3 on MacOS"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you <em>to break during code execution and inspect all the variables in scope during a request.<\/em><\/span><\/p>\n<p><span style=\"font-weight: 400;\">The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1\u00a0 to debug PHP code.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Let\u2019s start installing Xdebug 3 on MacOs:<\/span><\/h2>\n<p><b>Step 1:<\/b><span style=\"font-weight: 400;\"> First check whether PHP 8.1 is installed or not; if not, run the below command:<\/span><\/p>\n<pre><b>brew install php@8.1<\/b><\/pre>\n<p><b>Step 2: <\/b>To <span style=\"font-weight: 400;\">Install Xdebug, run the below command:<\/span><\/p>\n<pre><b>pecl install xdebug<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">If found\u00a0 warning like <\/span><b>\u00a0<\/b><b>PHP Warning:\u00a0 mkdir(): File exists in \/opt\/homebrew\/Cellar\/php\/8.1.8\/share\/php\/pear\/System.php on line 294<\/b><\/p>\n<p><span style=\"font-weight: 400;\">First, create pecl directory by using the command: <\/span><b>mkdir \/opt\/homebrew\/lib\/php\/pecl<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Then again, run the command:<\/span><\/p>\n<pre><b>pecl install xdebug<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">After running the above command, you will see the below output:<\/span><\/p>\n<pre>running: find \"\/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\" | xargs ls -dils\r\n15982931 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\r\n15983635 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\r\n15983636 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\r\n15983637 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\/Cellar\r\n15983638 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\/Cellar\/php\r\n15983639 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\/Cellar\/php\/8.1.12\r\n15983640 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\/Cellar\/php\/8.1.12\/pecl\r\n15983641 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\/Cellar\/php\/8.1.12\/pecl\/20210902\r\n15983642 776 -rwxr-xr-x 1 root wheel 394950 Aug 9 11:25 \/private\/tmp\/pear\/temp\/pear-build-rootO1x6b4\/install-xdebug-3.2.2\/opt\/homebrew\/Cellar\/php\/8.1.12\/pecl\/20210902\/xdebug.so\r\n\r\nBuild process completed successfully\r\nInstalling '\/opt\/homebrew\/Cellar\/php\/8.1.12\/pecl\/20210902\/xdebug.so'\r\ninstall ok: channel:\/\/pecl.php.net\/xdebug-3.2.2\r\nExtension xdebug enabled in php.ini<\/pre>\n<p><b>Step 3: <\/b><span style=\"font-weight: 400;\">After installing Xdebug<\/span><b>,<\/b> <span style=\"font-weight: 400;\">you must enable this extension in your php.ini file. To enable it, locate the php.ini file location and\u00a0 open php.ini file<\/span><\/p>\n<pre><b>sudo nano \/opt\/homebrew\/etc\/php\/8.1\/php.ini<\/b><\/pre>\n<p><span style=\"font-weight: 400;\">Paste these lines in php.ini file:\u00a0<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">zend_extension=\"xdebug.so\"<\/span>\r\n\r\n<span style=\"font-weight: 400;\">xdebug.mode=debug<\/span>\r\n\r\n<span style=\"font-weight: 400;\">xdebug.start_with_request=yes\r\n\r\n<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Run <\/span><b>sudo apachectl restart<\/b><span style=\"font-weight: 400;\"> command to restart service.<\/span><\/p>\n<p><b>Step 4: <\/b><span style=\"font-weight: 400;\">Now run <\/span><b>php -v <\/b><span style=\"font-weight: 400;\">command to check Xdebug is installed or not:<\/span><\/p>\n<pre>yogendrapratapsingh@Yogendras-MacBook-Pro ~ % php -v\r\nPHP 8.1.12 (cli) (built: Oct 30 2022 12:39:49) (NTS)\r\nCopyright (c) The PHP Group\r\nZend Engine v4.1.12, Copyright (c) Zend Technologies\r\nwith Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans\r\nwith Zend OPcache v8.1.12, Copyright (c), by Zend Technologies\r\n\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">If found any warning like:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">PHP Warning:\u00a0 Failed loading Zend extension 'xdebug.so' (tried: \/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so (dlopen(\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so, 0x0009): tried: '\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so' (no such file)), \/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so.so (dlopen(\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so.so, 0x0009): tried: '\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so.so' (no such file))) in Unknown on line 0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">Warning: Failed loading Zend extension 'xdebug.so' (tried: \/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so (dlopen(\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so, 0x0009): tried: '\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so' (no such file)), \/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so.so (dlopen(\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so.so, 0x0009): tried: '\/opt\/homebrew\/lib\/php\/pecl\/20210902\/xdebug.so.so' (no such file))) in Unknown on line 0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">PHP 8.1.12 (cli) (built: Oct 30 2022 12:39:49) (NTS)<\/span>\r\n\r\n<span style=\"font-weight: 400;\">Copyright (c) The PHP Group<\/span>\r\n\r\n<span style=\"font-weight: 400;\">Zend Engine v4.1.12, Copyright (c) Zend Technologies<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Then update <b>zend_extension=&#8221;xdebug.so&#8221; to zend_extension=&#8221;\/opt\/homebrew\/Cellar\/php\/8.1.12\/pecl\/20210902\/xdebug.so\u201d<\/b> in php.ini file. Here updated value will be the same as in Step 2. <\/span><\/p>\n<h2><b>Conclusion<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Finally, <\/span><span style=\"font-weight: 400;\">you\u2019ve successfully installed Xdebug on <\/span><span style=\"font-weight: 400;\">PHP 8.1.<\/span><span style=\"font-weight: 400;\">With Xdebug, you can now debug PHP applications with ease.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us know in case of any issues during the installation process, and please feel free to reach out via comments.<\/span><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1\u00a0 to debug PHP code. [&hellip;]<\/p>\n","protected":false},"author":1599,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":385,"footnotes":""},"categories":[3602,1816],"tags":[5324,1701],"class_list":["post-57924","post","type-post","status-publish","format-standard","hentry","category-drupal","category-testing-2","tag-debugger-tool","tag-php"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yogendra Pratap Singh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"How to install Xdebug 3 on MacOS | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to install Xdebug 3 on MacOS | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#article\",\"name\":\"How to install Xdebug 3 on MacOS | TO THE NEW Blog\",\"headline\":\"How to install Xdebug 3 on MacOS\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/yogendra-singh\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2023-08-19T17:50:06+05:30\",\"dateModified\":\"2023-08-30T17:58:40+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#webpage\"},\"articleSection\":\"Drupal, Testing, Debugger Tool, php\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/testing-2\\\/#listItem\",\"name\":\"Testing\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/testing-2\\\/#listItem\",\"position\":2,\"name\":\"Testing\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/testing-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#listItem\",\"name\":\"How to install Xdebug 3 on MacOS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#listItem\",\"position\":3,\"name\":\"How to install Xdebug 3 on MacOS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/testing-2\\\/#listItem\",\"name\":\"Testing\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/yogendra-singh\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/yogendra-singh\\\/\",\"name\":\"Yogendra Pratap Singh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/e47c8cde-e05c-4e07-82fe-914d28db9261_1970-Yogendra-Pratap-Singh-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Yogendra Pratap Singh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/\",\"name\":\"How to install Xdebug 3 on MacOS | TO THE NEW Blog\",\"description\":\"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-install-xdebug-3-on-macos\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/yogendra-singh\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/yogendra-singh\\\/#author\"},\"datePublished\":\"2023-08-19T17:50:06+05:30\",\"dateModified\":\"2023-08-30T17:58:40+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to install Xdebug 3 on MacOS | TO THE NEW Blog","description":"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.","canonical_url":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#article","name":"How to install Xdebug 3 on MacOS | TO THE NEW Blog","headline":"How to install Xdebug 3 on MacOS","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/yogendra-singh\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2023-08-19T17:50:06+05:30","dateModified":"2023-08-30T17:58:40+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#webpage"},"articleSection":"Drupal, Testing, Debugger Tool, php"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/testing-2\/#listItem","name":"Testing"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/testing-2\/#listItem","position":2,"name":"Testing","item":"https:\/\/tothenewco.pro\/blog\/category\/testing-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#listItem","name":"How to install Xdebug 3 on MacOS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#listItem","position":3,"name":"How to install Xdebug 3 on MacOS","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/testing-2\/#listItem","name":"Testing"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/yogendra-singh\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/yogendra-singh\/","name":"Yogendra Pratap Singh","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/e47c8cde-e05c-4e07-82fe-914d28db9261_1970-Yogendra-Pratap-Singh-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Yogendra Pratap Singh"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/","name":"How to install Xdebug 3 on MacOS | TO THE NEW Blog","description":"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/yogendra-singh\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/yogendra-singh\/#author"},"datePublished":"2023-08-19T17:50:06+05:30","dateModified":"2023-08-30T17:58:40+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"How to install Xdebug 3 on MacOS | TO THE NEW Blog","og:description":"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.","og:url":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"How to install Xdebug 3 on MacOS | TO THE NEW Blog","twitter:description":"Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. It allows you to break during code execution and inspect all the variables in scope during a request. The purpose of this blog is to install Xdebug 3 on MacOS with PHP 8.1 to debug PHP code.","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"57924","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e065656bcf7","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-08-11 05:04:19","updated":"2024-02-29 11:07:17","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/testing-2\/\" title=\"Testing\">Testing<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to install Xdebug 3 on MacOS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Testing","link":"https:\/\/tothenewco.pro\/blog\/category\/testing-2\/"},{"label":"How to install Xdebug 3 on MacOS","link":"https:\/\/tothenewco.pro\/blog\/how-to-install-xdebug-3-on-macos\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/57924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/1599"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=57924"}],"version-history":[{"count":3,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/57924\/revisions"}],"predecessor-version":[{"id":58210,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/57924\/revisions\/58210"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=57924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=57924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=57924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}