Hello,
We are testing for small Wordpress and Prestashop projects the usage of VS CODE + PHP Tools for VS under WSL.
All is installed and working, extension is properly loaded, and we can start debug without problems, and stop in breakpoints.
We are using this configuration for Xdebug 3:
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.discover_client_host=1
xdebug.client_port=9003
xdebug.client_host=127.0.0.1
xdebug.idekey=VSCODE
We are sending XDEBUG_SESSION_START=vscode in the URL to start debugging, and as I mention before, all seems OK.
We can step forward, over, etc. but sometimes, with random variables, debugging is not stopped, but the executing line is missing, we can not step forward again, variable content cannot be evaluated, etc.
Seems like the execution is stopped but VS code has missed the connection with debugger, line is not highlighted, etc.
The majority of times this occur positioning the cursor over a variable to see the contents.