{"id":70,"date":"2026-07-25T13:46:03","date_gmt":"2026-07-25T11:46:03","guid":{"rendered":"https:\/\/swivelpos.com\/en\/?page_id=70"},"modified":"2026-07-25T13:46:13","modified_gmt":"2026-07-25T11:46:13","slug":"installation-instructions-xdebug-the-easy-way","status":"publish","type":"page","link":"https:\/\/swivelpos.com\/en\/installation-instructions-xdebug-the-easy-way\/","title":{"rendered":"Installation: instructions XDebug \u2013 The Easy Way"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I don\u2019t know about you, but I always struggle to install Xdebug, whether it being Windows or Linux.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/xdebug.org\/wizard\" target=\"_blank\" rel=\"noreferrer noopener\">XDebug installation wizard is here<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu Linux<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install php-xdebug<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Edit php.ini (probably in \/etc\/php\/[<strong>8.5<\/strong>]\/apache2)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/php\/<strong>8.5<\/strong>\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add some lines at the bottom:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;XDebug]<br>xdebug.mode=debug<br>xdebug.start_with_request=yes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Reboot webserver<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service apache2 restart<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check for the existence of XDebug in the phpinfo().<br>When you run the installer (<a href=\"http:\/\/localhost\/install\/phpinfo.php\">http:\/\/localhost\/install\/phpinfo.php<\/a>) there is a phpinfo script for your convenience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In phpinfo: check if step debugger is enabled:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Step Debugger: \u2714 enabled<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Don\u2019t forget to install the PHP Debug plugin in VSCode \/ VSCodium<\/strong>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Windows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Watch this video<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Setup debugging for PHP8.1 with XDebug 3 in VSCode\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/HrQWtbxY1Hs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I don\u2019t know about you, but I always struggle to install Xdebug, whether it being Windows or Linux. The XDebug [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-70","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/pages\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":2,"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/pages\/70\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/pages\/70\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/swivelpos.com\/en\/wp-json\/wp\/v2\/media?parent=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}