View Issue Details

IDProjectCategoryView StatusLast Update
0000620XdebugStep Debuggingpublic2020-03-12 17:36
Reporternthalk Assigned Toderick  
PriorityhighSeverityfeatureReproducibilityalways
Status resolvedResolutionwon't fix 
Platformamd64OSlinuxOS Version2.6.32.1-rscloud
Product Version2.1.0 
Summary0000620: Remote debugging not triggerable with ini_set
Description

Xdebug does not seem to be able to set the remote_host/port and actually connect to a remote debugger when using iniset to configure the xdebug.remote* settings.

Steps To Reproduce
  1. Run the following code:
    <?php

ini_set("xdebug.remote_host","127.0.0.1");
ini_set("xdebug.remote_port","9000");
ini_set("xdebug.remote_log","/home/carl/xdebug.log");
ini_set("xdebug.remote_autostart","1");
ini_set("xdebug.remote_enable","1");

xdebug_break();
phpinfo();
$test = "test";
echo $test . $unknown_var;
die();

Additional Information

This would be really useful for conditional debugging in senarios where I do not want to have to edit ini files and restart the entire php service I'm using.

TagsNo tags attached.
Operating System
PHP Version5.3.3

Activities

derick

2014-02-27 19:07

administrator   ~0002681

The only setting you cannot make with ini_set is remote_enable. But there are several options. Firstly, you can just turn it on and have the IDE simply not accept incoming debugging connections. And secondly you can use .htaccess/htscanner to just drop a .htaccess file into the directory turning it on.

Issue History

Date Modified Username Field Change
2010-09-23 22:24 nthalk New Issue
2014-02-27 19:07 derick Note Added: 0002681
2014-02-27 19:07 derick Status new => resolved
2014-02-27 19:07 derick Resolution open => won't fix
2014-02-27 19:07 derick Assigned To => derick
2020-03-12 16:55 derick Severity minor => feature
2020-03-12 17:36 derick Category Feature/Change request => Step Debugging