Page 1 of 1

XDebug not connecting using a PHP website

Posted: Wed Feb 15, 2023 12:32 am
by jtmurphy1k

Eran, I have a new WIN 11 machine with all new versions of PHP, XDebug, and CodeLite. After hitting F5, my browser window opens and my php hello world code runs. A few seconds later, CodeLite pops up a modal window saying "XDebug did not connect in a timely manner" and the code debugger window never activates. Please advise. My configuration and actions are described below.

MS Windows 11 Pro version 10.0.22621
php-8.2.2-nts-Win32-vs16-x64 in c:\php8
PATH added C:\php8
php_xdebug-3.2.0-8.2-vs16-nts-x86_64.dll renamed php_xdebug.dll in C:\php8\ext\
codelite-amd64-17.0.0
XDebug port 9003
XDebug IP 127.0.0.1:8080
XDebug IDE key codeliteide
Project Settings>Debug>File Mapping>local folder>C:\Users\jtmur\Documents\CodeLite\Krawl
>remote folder>/

php.ini added at the bottom

Code: Select all

[XDebug]
xdebug.mode=debug
xdebug.start_with_request=yes
zend_extension = "C:\php8\ext\php_xdebug.dll"
xdebug.idekey="codeliteide"

Code: Select all

C:\Users\jtmur\Documents\CodeLite\Krawl> c:\php8\php.exe -S 127.0.0.1:8080 -t .

(starts no errors)

hello_world.php

Code: Select all

<?php
	echo "Hello World "; 
	echo "Second ";
	echo "Third ";
?>

(break points set on first and second echo)
(CodeLite F5 opens browser automatically with url)
http://127.0.0.1:8080/hello_world.php?XDEBUG_SESSION_START=codeliteide

Hello World Second Third

(no errors)
(terminal)

Code: Select all

[Tue Feb 14 10:51:48 2023] PHP 8.2.2 Development Server (http://127.0.0.1:8080) started
[Tue Feb 14 10:52:10 2023] 127.0.0.1:49717 Accepted
[Tue Feb 14 10:52:10 2023] 127.0.0.1:49717 [200]: GET /hello_world.php?XDEBUG_SESSION_START=codeliteide
[Tue Feb 14 10:52:10 2023] 127.0.0.1:49717 Closing

CodeLite IDE delays a few seconds then a modal popup window opens: XDebug did not connect in a timely manner