This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 160501

Summary: Netbeans Debugger Proxy
Product: php Reporter: radalin <radalin>
Component: ProjectAssignee: Tomas Mysik <tmysik>
Status: RESOLVED FIXED    
Severity: blocker CC: rmatous
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description radalin 2009-03-17 21:06:51 UTC
Hi, 

I currently have a problem with remote debugging on xdebug and netbeans. My web server is on a remote server and we are more than one developers who 
wants to control the debugging features on the server. 

So the xdebug's remote_host property does not work for us because we have more than one ips and these ips are generally not static. 

So I guess we should use a proxy which will take our requests and forward it to a port which is listened by xdebug

Komodo has done such a debug proxy. Details here: http://docs.activestate.com/komodo/5.0/debugger.html#dbgp_proxy (proxy is not written but they 
have put a proxy property which was forwarding the requests)

In Netbeans I was unable to find where to put an ip address which will be used as a proxy. It was assumed that xdebug was already listening the 
development machine's port. 

I did not found this feature on 6.7 M2 either.

It would be nice to see such an enhancement.

Thanks
Comment 1 rmatous 2009-04-03 18:14:29 UTC
I've implemented it and commited locally, works for me.Tomas could you add API && UI changes for 3 project global
options. See snip of the code:
this.isProxyEnabled = false;//TODO: PhpOptions.getInstance().isProxyEnabled();
this.proxyHost = "localhost";//TODO: PhpOptions.getInstance().getProxyHost();
this.proxyPort = 9001;//TODO: PhpOptions.getInstance().getProxyPort;

Reassigning to php.project
Comment 2 Quality Engineering 2009-04-07 07:24:28 UTC
Integrated into 'main-golden', will be available in build *200904070200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7f0cf8a89360
User: Radek Matous <rmatous@netbeans.org>
Log: #160501 Netbeans Debugger Proxy
Comment 3 Tomas Mysik 2009-04-08 14:29:41 UTC
Fixed.
http://hg.netbeans.org/web-main/rev/65448520dae7
Comment 4 Quality Engineering 2009-04-09 19:33:51 UTC
Integrated into 'main-golden', will be available in build *200904091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/65448520dae7
User: Tomas Mysik <tmysik@netbeans.org>
Log: #160501: Netbeans Debugger Proxy