{"id":1451,"date":"2021-02-24T20:48:36","date_gmt":"2021-02-24T19:48:36","guid":{"rendered":"https:\/\/ekiwi.de\/?p=1451"},"modified":"2021-03-31T21:34:57","modified_gmt":"2021-03-31T19:34:57","slug":"phpstorm-kein-debugging-nach-umstellung-auf-xdebug-3","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/index.php\/1451\/phpstorm-kein-debugging-nach-umstellung-auf-xdebug-3\/","title":{"rendered":"PhpStorm &#8211; kein Debugging nach Umstellung auf Xdebug 3"},"content":{"rendered":"<p>Auf meinem neuen Laptop lief das PHP-Debugging mit PhpStorm nicht mehr. Wie sich herausstellte lag es an der Umstellung auf Xdebug 3.<\/p>\n<p><!--more--><\/p>\n<p>Auf meinem neuen Laptop habe ich Xampp eingerichtet und Xdebug konfiguriert. Dabei habe ich nicht auf die Version geachtet und auch noch die Konfigurationsdatei vom alten Rechner \u00fcbernommen.<\/p>\n<p>Dummerweise funktionierte nun das Debugging nicht mehr, Hilfestellung gab mir dann am Ende ein <a href=\"https:\/\/www.jetbrains.com\/help\/phpstorm\/configuring-xdebug.html#updatingPhpIni\" target=\"_blank\" rel=\"noopener\">Hilfeartikel von Jetbrains<\/a>.<\/p>\n<p>Installiert hatte ich die aktuelle Version 3 von Xdebug. Dies kann man z.B. in der phpinfo-Datei \u00fcberpr\u00fcfen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2021\/02\/xdebug_1.png\" alt=\"\" width=\"662\" height=\"218\" class=\"alignnone size-full wp-image-1452\" srcset=\"\/wp-content\/uploads\/2021\/02\/xdebug_1.png 662w, \/wp-content\/uploads\/2021\/02\/xdebug_1-300x99.png 300w\" sizes=\"auto, (max-width: 662px) 100vw, 662px\" \/><\/p>\n<p>Dummerweise hat sich hier die Syntax der Konfiguration etwas ge\u00e4ndert.<\/p>\n<p><strong>Alt:<\/strong><\/p>\n<pre>\r\nxdebug.remote_enable=1\r\nxdebug.remote_host=127.0.0.1\r\nxdebug.remote_port=9000\r\n<\/pre>\n<p><strong>Neu:<\/strong><\/p>\n<pre>\r\nxdebug.mode=debug\r\nxdebug.client_host=127.0.0.1\r\nxdebug.client_port=9000\r\n<\/pre>\n<p>Anschlie\u00dfend lief das Debugging wieder und die IDE hielt auch wieder an den Breakpoints an.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2021\/02\/xdebug_2.png\" alt=\"\" width=\"475\" height=\"243\" class=\"alignnone size-full wp-image-1453\" srcset=\"\/wp-content\/uploads\/2021\/02\/xdebug_2.png 475w, \/wp-content\/uploads\/2021\/02\/xdebug_2-300x153.png 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Auf meinem neuen Laptop lief das PHP-Debugging mit PhpStorm nicht mehr. Wie sich herausstellte lag es an der Umstellung auf<\/p>\n","protected":false},"author":1,"featured_media":57,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[14],"tags":[31],"class_list":["post-1451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/1451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media\/57"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}