


In my IDE (PHPStorm), I have xdebug set to port 9003, and set to break at first line. I see that the cron is running as there is output to stdout.log Then I created a script to run jobs, which isĮxport XDEBUG_CONFIG=”mode=debug client_host=127.0.0.1 client_port=9003 start_with_request=yes”įor hook in $(wp cron event list –next_run_relative=now –fields=hook –format=ids) Įcho “again in cron – debug set” > /somefolder/stdout.log

Not sure if define( ‘WP_DEBUG’, true ) plays a role in my case. Disable display of errors and warningsĭefine( ‘WP_DEBUG_DISPLAY’, false ‘display_errors’, 0 ) Enable Debug logging to the /wp-content/debug.log file I am using my Mac’s cron functionality to run WordPress cron jobs. Trying to figure out how to get my cron jobs to trigger breakpoints in PHPStorm via Xdebug 3.
