I have not yet figured out how to run or debug tests that rely on the database connection from inside PHPStorm (right click on a test to debug). I am new to docker so there may be better ways to fix this. I have quite a bit of experience with PHPStorm and XDebug 2.x. I got XDebug to work with a web request after some help from the posters above. Change the IDE key as configured earlier under settings and left click the extension icon > debug to start debugging.Īlso do the same inside PhpStorm in the right corner. lastly start the debug session in the browser, easiest way is to use the chrome extension Xdebug helper.You can do this in the top right corner of PhpStorm under "Add Configuration." Which means your project root directory on the left should map to /var/www/html It is very important to correctly map the paths in this case: Make sure this port does not conflict with a service inside the container, in this case do not use 8000 as PHP already runs on this port.įile > Settings > Languages
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |