Zend Debugger из оффисной сетки - как правильно настроить

confguru

ExAdmin
Команда форума
Zend Debugger из оффисной сетки - как правильно настроить

Как правильно настроить работу с Zend Debugger если доступ только через проксю. И все напрочь зафайеволенно.
 

confguru

ExAdmin
Команда форума
Не помогает..
Интересен принцип - по логике - я отдаю команды дебаггеру, стучать мне в такой-то IP, на такойто порт,
где я буду слушать?
 

Profic

just Profic (PHP5 BetaTeam)
Насколько я помню принцип работы dbg и xdebug нужно настраивать snat на фаерволе.
Т.е. сервер стучится по определенному адресу:порту который перекидывается во внутренний средствами ната.

Ну или какой-нить свой хитрый прокси. В протоколе dbgp (xdebug) такой рассматривается.

Других способов скорее всего не существует.
 

MiRacLe

просто Чудо
Через http-прокси настроить нельзя.
Настраивал через SNAT - прокидывал разные порты на разные машины (для доступа нескольким разработчикам)
ProxySettings насколько я понимаю касаются только WebBrowser-а.
 

MiRacLe

просто Чудо
SNAT - Source NAT

только я наврал - использовал не SNAT, а DNAT (Destination NAT)

на примере iptables:
Код:
$IPTABLES -t nat -A PREROUTING --dst $FW_IP -p TCP -s $WEB_IP --dport $PROGRAMMER_PORT -j DNAT --to-destination $PROGRAMMER_IP:$PROGRAMMER_PORT
$IPTABLES -t nat -A POSTROUTING -p tcp -d $WEB_IP -j MASQUERADE
Где соответственно:
FW_IP - адрес файрвола
WEB_IP - адрес сервера с ZendDebugger
PROGRAMMER_IP и _PORT в коментариях вроде не нуждаются ;o)
 

si

Administrator
admin
это читал ?

Zend Studio Client supports a communication tunnel with Zend Studio Server which solves the communication problem occurs when the Client or the Server is behind a Firewall or NAT. This feature enables Platform users to view and edit Event source code in the Studio Client development environment; and conversely, Studio Client users can access the Remote Debugger (Server Debugger) via the same communication tunnel that routes full-duplex traffic over HTTP.
 

confguru

ExAdmin
Команда форума
Cannot connect to the Zend Studio Server (Zend Debugger) from the ZDE (Zend Studio Client) using the Debug URL option
Article #10
Product: Zend Studio

Summary
Trying to perform 'Debug URL' or 'Profile URL', but operation fails.

Further information
1. Verify that in your web server's php.ini, you have the IP address of
the machine you are running the ZDE (Zend Studio Client) from in this
directive: "zend_debugger.allow_hosts="
If it's not there then add it.
Example: zend_debugger.allow_hosts=127.0.0.1/32, 192.168.0.0/16
Make sure you restart your web server after such change.

2. Verify that you can see the string "with Zend Debugger vX.Y.Z," in the
first gray box of the phpinfo() function output.
If not, then it means that the Zend Debugger is not loaded or installed.

3. Verify that you have a file named dummy.php in the server's
document root directory.
If this file is not there, please download it from: http://downloads.zend.com/support-files/dummy.zip
Place the downloaded file in the web server root directory.

4. In ZDE (your client machine) Open the 'Debug' tab in the ZDE
'Preferences' window (accessible through the 'Tools' menu), set the
'Debug mode' to 'Server' and set your server address in the 'Debug
Server URL' directive.

5. Make sure that you enter a full path to a php file in "Debug URL".
Example: in Debug URL, in 'Open Browser At:' fill in:
http://my-server/index.php

This way, the Zend Debugger will establish a connection with the Zend
Studio Environment, and you will be able to debug.

http://www.zend.com/support/knowledgebase.php?kbid=10&view_only=1
 

Labutin

Новичок
У меня такая ситуация. Zend Studio for Eclipse стоит дома. В инет выхожу через NAT провайдера. Т.е. обычный remote debug работать не будет по той причине, что удаленный сервер ко мне подключиться не может.
Ситуация усугубляется тем, что Apache с ZendDebuger'ом стоит внутри корпоративной сети и к нему проброшен порт. Т.е. браузером я захожу на http://company.ru:88 и попадаю на http://192.168.0.50:80 Т.е. это все работает. Как мне в такой ситуации настроить Remote Debuging ? У провайдера я ничего настроить не могу. На корпоративном шлюзе company.ru могу настроить все что нужно.
Пробую вот использовать возможности туннеля в Zend Studio. Ввожу "Enter the URL that points to the document root of this server": http://company.ru:88 А вот что нужно вводить в параметре "Specify Return Host:" ? Чего только не пробовал - всегда в итоге при подключении "Socket timeout" :(
Честно говоря, я не понимаю, как этот туннель создается. Кто к кому коннектиться? На какой порт? Может быть кто-нибудь разъяснит этот момент?
В общем нужна помощь :)

P.S. На сервере ZendDebuger установлен.
 
Сверху