What are you Xdebug settings (in your php.ini or any other .ini file you used to define those)?
xDebug and sail php artisan:[anything]
If I issue any artisan command in the terminal, I always get the following response.
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
Often the the command 'works' or functions, but I have found that sometimes the artisan commands do not work. e.g. I was working on a project recently, and [sail php artisan make:migration] and [sail php artisan make:model -m] did not function. In the second case, artisan successfully made the model, but the migration failed. I am wondering if the combination of docker / sail is causing this.
I just did a clean install using the Laravel documentation and docker. I then added Jetstream and telescope running the migrations. when I issue the [sail php artisan route:list] the computer successfully lists all the routes, however I get the debug error or warning before and after the routes are listed.
sail php artisan route:list
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
+--------+----------+----------------------------------------------------------+---------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------------+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+----------------------------------------------------------+---------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------------+
| | GET|HEAD | / | | Closure | web |
.......
........
.......
| | POST | user/two-factor-recovery-codes | | Laravel\Fortify\Http\Controllers\RecoveryCodeController@store | web |
| | | | | | App\Http\Middleware\Authenticate |
| | | | | | Illuminate\Auth\Middleware\RequirePassword |
+--------+----------+----------------------------------------------------------+---------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------------+
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
Any thoughts on how I can get [xdebug] and artisan to play nicely together.
My ultimate goal is to be able to use [xdebug] and PHP-Storm.
Thanks for any help and / or suggestions in advance
R B Davis
Please or to participate in this conversation.