View Issue Details

IDProjectCategoryView StatusLast Update
0000620XdebugFeature/Change requestpublic2014-12-31 16:09
ReporternthalkAssigned Toderick 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Platformamd64OSlinuxOS Version2.6.32.1-rscloud
Product Version2.1.0 
Target VersionFixed in Version 
Summary0000620: Remote debugging not triggerable with ini_set
DescriptionXdebug does not seem to be able to set the remote_host/port and actually connect to a remote debugger when using ini_set to configure the xdebug.remote_* settings.
Steps To Reproduce1. 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 InformationThis 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