Place a break-point at line 16, clicking right of the number in the gutter, which should create a red dot:.Setting up Xdebug with Lando and PhpStorm (2018).You can remove the cookie by running this in the Console:ĭokie = "XDEBUG_SESSION= expires=Thu, 00:00:00 UTC " Paste in the expression below, and press Ctrl + Enter to set the cookie:ĭokie = "XDEBUG_SESSION=lando" Ĭheck under Storage > Cookies if it worked.Open Firefox Console with Ctrl + Shift + K, in Chrome use Control + Shift + J.First time PhpStorm/Xdebug receives the parameter, a cookie is set in the browser, and further reloads will stop at any break-point, even without the XDEBUG_SESSION_START parameter present. Initiate debug session setting a cookie manuallyĪs an alternative to initiate debugging by appending ?XDEBUG_SESSION_START=lando you can create a cookie manually. Open the front page of the web site, and send a signal to Xdebug and PhpStorm to initiate debugging by appending ?XDEBUG_SESSION_START=lando to the URL, like this. Enable the XDEBUG_SESSION_START line, if you want to start a Xdebug session every time Lando starts. Note: Remember to run lando rebuild to enable Xdebug in an existing Lando instance.Ī basic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |