[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 302184] New: remote_host for debugging cannot be configured for the  xdebug plugin /  debugger
From:       <branleb () googlemail ! com>
Date:       2012-06-19 13:27:30
Message-ID: bug-302184-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=302184

            Bug ID: 302184
          Severity: wishlist
           Version: CVS HEAD
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: remote_host for debugging cannot be configured for the
                     xdebug plugin /  debugger
    Classification: Unclassified
                OS: Linux
          Reporter: branleb@googlemail.com
          Hardware: Gentoo Packages
            Status: UNCONFIRMED
         Component: xdebug
           Product: quanta

The XDebug Plugin alread supports running the debugged code on a remote server
via ssh.
But as the XDebug Plugin for PHP won't look at SSH environment variables for
the connecting host and there is no xdebug.remote_host set neither as runtime
ini directive nor as environment variable,
xdebug won't connect back to the ide.

A Fix for the Developer is to edit the php.ini directive - if he is abe to do
so on the server. If he isn't granted the required permissions, he'll be stuck
in that situation.

So I suggest to make this value configurable via IDE.

One possibility could be to add another Widget in the debugger specific config
interface,
below the path mapping configuration.

Maybe it would be useful (as its almost the same code) to code it so generic,
that an Edtior for environment variables can be  added too.

It would also be useful if a developer could configure the XDEBUG_IDEKEY value
via that launch config.
This could be a first step to implement Issue #280869 

Another possibility for an (ugly) QuickFix would be to append
QHostInfo::localHostName() as remote_host value at XDEBUG_CONFIG (see
debugjob.cpp) and send this to the debugger. 
But this solution would disable a configuration via  php.ini and is not safe if
reverse dns does not work for the ide and the execution host. Sending the local
IP Address could also lead into problems if the IDE host has multiple
interfaces. (High likely if you develop with virtual machines)


Reproducible: Always

Steps to Reproduce:
1. Open Launch Configuration dialog
2. Look for config option
3. You won't find it ;-)
Actual Results:  
It is not configurable

Expected Results:  
It should be configurable

Othe IDEs with xdebug support also support this feature.

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic