You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot get the symfony local server to work with xdebug and stop at the breakpoints that I set on PhpStorm IDE (latest release). However, I can get the break points to stop when using both:
php -S localhost:8000
Run bin/console commands
I am using:
PHP version 8.2.7
Symfony CLI version 5.7.8 using PHP FPM 8.2.7
Xdebug v3.2.2
My MacOS Firewall is turned off
The xdebug is perfectly configured:
The setting for xdebug ini:
[XDebug]
zend_extension="/usr/local/Cellar/php/8.2.7_2/pecl/20220829/xdebug.so"
; # Xdebug v3
; # If we are debugging
xdebug.mode=debug,develop
xdebug.start_with_request=yes
; # If we are profiling
;xdebug.mode=profile
;xdebug.start_with_request=trigger
xdebug.profiler_output_name=cachegrind.out.%u.%R
xdebug.output_dir="/tmp"
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM
xdebug.discover_client_host=true
xdebug..start_upon_error=yes
;xdebug.log="/Users/aidrissi/apps/xdebug.log"
Here's the long output of the xdebug log:
[24822] Log opened at 2024-03-12 08:51:27.656243
[24822] [Step Debug] INFO: Checking for client discovery headers: 'HTTP_X_FORWARDED_FOR,REMOTE_ADDR'.
[24822] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[24822] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[24822] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 127.0.0.1:9003.
[24822] [Step Debug] INFO: Connected to debugging client: 127.0.0.1:9003 (from REMOTE_ADDR HTTP header).
[24822] [Step Debug] ->
I should also mention that during the server request I noticed those errors output:
[PHP-FPM ] sh: 1: command not found
[PHP-FPM ] sh: 1: command not found
[Web Server ] Mar 12 08:51:28 |WARN | SERVER GET (404) /_wdt/290f4c ip="127.0.0.1"
[Web Server ] Mar 12 08:51:28 |INFO | SERVER GET (200) /_wdt/290f4c
[PHP-FPM ] sh: 1: command not found
[PHP-FPM ] sh: 1: command not found
The text was updated successfully, but these errors were encountered:
numediaweb
changed the title
symfony server start: xdebug not stopping at break points
symfony local server: xdebug not stopping at breakpoints
Mar 12, 2024
Hi there,
I cannot get the symfony local server to work with xdebug and stop at the breakpoints that I set on PhpStorm IDE (latest release). However, I can get the break points to stop when using both:
I am using:
The xdebug is perfectly configured:
The setting for xdebug ini:
Here's the long output of the xdebug log:
[24822] Log opened at 2024-03-12 08:51:27.656243
[24822] [Step Debug] INFO: Checking for client discovery headers: 'HTTP_X_FORWARDED_FOR,REMOTE_ADDR'.
[24822] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[24822] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[24822] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 127.0.0.1:9003.
[24822] [Step Debug] INFO: Connected to debugging client: 127.0.0.1:9003 (from REMOTE_ADDR HTTP header).
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- feature_set -i 7 -n breakpoint_include_return_value -v 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- stdout -i 8 -c 1
[24822] [Step Debug] ->
[24822] [Step Debug] <- status -i 9
[24822] [Step Debug] ->
[24822] [Step Debug] <- step_into -i 10
[24822] [Step Debug] -> <xdebug:message filename="file:///Users/aidrissi/apps/syndic-plus/public/index.php" lineno="2"></xdebug:message>
[24822] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[24822] [Step Debug] ->
[24822] [Step Debug] <- eval -i 12 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[24822] [Step Debug] ->
[24822] [Step Debug] <- eval -i 13 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[24822] [Step Debug] ->
[24822] [Step Debug] <- eval -i 14 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[24822] [Step Debug] ->
[24822] [Step Debug] <- eval -i 15 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[24822] [Step Debug] ->
[24822] [Step Debug] <- detach -i 16
[24822] [Step Debug] ->
[24821] Log closed at 2024-03-12 08:51:27.872661
[24821] Log opened at 2024-03-12 08:51:27.873063
[24821] [Step Debug] INFO: Checking for client discovery headers: 'HTTP_X_FORWARDED_FOR,REMOTE_ADDR'.
[24821] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[24821] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[24821] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 127.0.0.1:9003.
[24821] [Step Debug] INFO: Connected to debugging client: 127.0.0.1:9003 (from REMOTE_ADDR HTTP header).
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- feature_set -i 7 -n breakpoint_include_return_value -v 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- stdout -i 8 -c 1
[24821] [Step Debug] ->
[24821] [Step Debug] <- status -i 9
[24821] [Step Debug] ->
[24821] [Step Debug] <- step_into -i 10
[24821] [Step Debug] -> <xdebug:message filename="file:///Users/aidrissi/apps/syndic-plus/public/index.php" lineno="2"></xdebug:message>
[24821] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[24821] [Step Debug] ->
[24821] [Step Debug] <- eval -i 12 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[24821] [Step Debug] ->
[24821] [Step Debug] <- eval -i 13 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[24821] [Step Debug] ->
[24821] [Step Debug] <- eval -i 14 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[24821] [Step Debug] ->
[24821] [Step Debug] <- eval -i 15 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[24821] [Step Debug] ->
[24821] [Step Debug] <- detach -i 16
[24821] [Step Debug] ->
[24822] Log closed at 2024-03-12 08:51:28.379771
[24855] Log opened at 2024-03-12 08:51:28.444491
[24855] [Step Debug] INFO: Checking for client discovery headers: 'HTTP_X_FORWARDED_FOR,REMOTE_ADDR'.
[24855] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[24855] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[24855] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 127.0.0.1:9003.
[24855] [Step Debug] INFO: Connected to debugging client: 127.0.0.1:9003 (from REMOTE_ADDR HTTP header).
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- feature_set -i 7 -n breakpoint_include_return_value -v 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- stdout -i 8 -c 1
[24855] [Step Debug] ->
[24855] [Step Debug] <- status -i 9
[24855] [Step Debug] ->
[24855] [Step Debug] <- step_into -i 10
[24855] [Step Debug] -> <xdebug:message filename="file:///Users/aidrissi/apps/syndic-plus/public/index.php" lineno="2"></xdebug:message>
[24855] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[24855] [Step Debug] ->
[24855] [Step Debug] <- eval -i 12 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[24855] [Step Debug] ->
[24855] [Step Debug] <- eval -i 13 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[24855] [Step Debug] ->
[24855] [Step Debug] <- eval -i 14 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[24855] [Step Debug] ->
[24855] [Step Debug] <- eval -i 15 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[24855] [Step Debug] ->
[24855] [Step Debug] <- detach -i 16
[24855] [Step Debug] ->
[24855] Log closed at 2024-03-12 08:51:28.604090
I should also mention that during the server request I noticed those errors output:
The text was updated successfully, but these errors were encountered: