View Issue Details

IDProjectCategoryView StatusLast Update
0001611XdebugStep Debuggingpublic2019-02-15 16:38
Reportercmct89 Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformPHPStormOSWindowsOS Version10
Product Version2.7.0beta1 
Summary0001611: XDebug does not produce log or break on breakpoint without passing xdebug.remote_autostart=On
Description

I set-up XDebug to run from my test.bat file by passing:
set php-debug-flags=-d xdebug.remote_enable=On -d xdebug.idekey=%idekey%
set php-profile-flags=-d xdebug.profiler_enable=On -d xdebug.profiler_output_dir=C:\temp

I have also set the log output for xdebug in my php.ini with xdebug.remote_log=C:\Repositories\webs-integration-tests\branches\CA-Scripts\log.log

Unfortunately, the log is not created and if I add a break-point in PHPStorm it is not hit when running my .bat script. However, if I add xdebug.remote_autostart=On, I get a log and it hits my break-point. My understanding is that xdebug.remote_autostart=On is supposed to break on first line not on a break point so I am not even sure if it is working correctly.

Moreover, I have verified with other team members my current settings and we are stumped as to why it is only affecting me. The only difference in our environments is that I am using PHP 7.3, I've added php -i to see my exact environment set-up.

Thanks for the help!

Steps To Reproduce

1) Set break point in PHPStorm
2) Add xdebug.remote_log=Path
3) Run batch file from cmd without xdebug.remote_autostart=On
4) Add xdebug.remote_autostart=On

TagsNo tags attached.
Operating System
PHP Version5.1.0

Activities

derick

2019-02-01 15:55

administrator   ~0004863

Hi,

did you export the XDEBUG_CONFIG variable on the command line? That is needed to trigger the debugging connection. See the following URL on how to do that on Windows: https://xdebug.org/docs/remote#starting

You also write:

My understanding is that xdebug.remote_autostart=On is supposed to break on first line not on a break point so I am not even sure if it is working correctly.

That's not correct. remote_autostart only negates the need for a trigger (the XDEBUG_CONFIG env var on the command line, or the XDEBUG_SESSION_START cookie or GET parameter for the web). It's up to the IDE whether it stops on the first line, or on the first breakpoint.

cheers,
Derick

derick

2019-02-15 16:38

administrator   ~0004913

I am closing this issue, as the requested feedback was not provided within 2 weeks. Feel free to reopen this report if you have further information.