![]() The hostname needs to be set to either localhost or 0.0.0.0 Code language: JSON / JSON with Comments ( json ) This can be added for all cases as it will not stop local listens from working. VSCode will require you to add a hostname field to the debug configuration. In some setups the above localhost solution may already work for you! XDEBUG_CONFIG= "client_port=9000 client_host=localhost remote_enable=1" php test.php Code language: JavaScript ( javascript ) Docker / ContainersÄebugging from docker containers can require a little more effort and will also differ between setups (Especially if using WLS2). (Remember, you’ll need a breakpoint in a file to see it stop). Then on the same host as VSCode you could then run the following to trigger a connection to the debug client. Make sure VSCode is listening for connections, and that you have a script with a breakpoint in it ready to run.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |