admin管理员组

文章数量:1122849

I hope someone can save me from drinking and banging my head against the wall ;) I am trying to use PHPstorm instead of VScode to have a complete out-of-the-box solution.

I can't get xdebug to work; I had it working under vscode.

I am using Laravel and the artisan serve cli command to launch the website. I don't know if that is the problem.

I have setup up my php.ini this way.

My PhpStorm is setup this way

I have set the phpstorm broadcast on

I have download the chrome extension for Xdebug and turned it on.

I turned on my logging in php.ini but all it is saying is

[4840] Log opened at 2024-12-09 02:49:47.225931
[4840] [Config] INFO: Trigger value for 'XDEBUG_TRIGGER' not found, falling back to 'XDEBUG_SESSION'
[4840] [Config] INFO: Trigger value for 'XDEBUG_SESSION' not found, so not activating

I have checked Break at first line in PHP code but there are issues with this.

  1. it is hitting on every single client-side request file that comes down over 50 times it is hitting xdebug break at first line in php code. for laravel that is the server.php file
  2. It never hits my break point if I go through that cycle of continuation.

Notification is being given over and over and over again.

I hope someone can save me from drinking and banging my head against the wall ;) I am trying to use PHPstorm instead of VScode to have a complete out-of-the-box solution.

I can't get xdebug to work; I had it working under vscode.

I am using Laravel and the artisan serve cli command to launch the website. I don't know if that is the problem.

I have setup up my php.ini this way.

My PhpStorm is setup this way

I have set the phpstorm broadcast on

I have download the chrome extension for Xdebug and turned it on.

I turned on my logging in php.ini but all it is saying is

[4840] Log opened at 2024-12-09 02:49:47.225931
[4840] [Config] INFO: Trigger value for 'XDEBUG_TRIGGER' not found, falling back to 'XDEBUG_SESSION'
[4840] [Config] INFO: Trigger value for 'XDEBUG_SESSION' not found, so not activating

I have checked Break at first line in PHP code but there are issues with this.

  1. it is hitting on every single client-side request file that comes down over 50 times it is hitting xdebug break at first line in php code. for laravel that is the server.php file
  2. It never hits my break point if I go through that cycle of continuation.

Notification is being given over and over and over again.

Share Improve this question edited Dec 9, 2024 at 20:10 JustMe asked Dec 9, 2024 at 3:11 JustMeJustMe 275 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 2

If Xdebug is saying "Trigger value for 'XDEBUG_SESSION' not found, so not activating" then it had not seen the cookie.

Which means that the browser extension did not set the Cookie header.

A workaround is to set xdebug.start_with_request=yes. (https://xdebug.org/docs/step_debug#activate_debugger)

本文标签: PhpStormlaravelXdebug unable to hit my breakpointStack Overflow