Dbgpproxy

Posted : admin On 12/4/2021

This topic describes how to edit an existing PHP server in Zend Studio. For information on how to add a new PHP server, see Adding PHP Servers.

Setting up DBGp Proxy. In Languages & Frameworks – PHP – Debug – DBGp Proxy,IDE keyChange to the corresponding in the Xdebug configuration filexdebug.idekey。 Add a Server. Find the configuration in Languages & Frameworks – PHP – Servers and click+Add a Server configuration similar to the following. DBGp Proxy - select this check-box to use a DBGp proxy server for debugging: IDE Key - IDE Key XDebug passes on to the DBGp debugger handler. Proxy (Host:Port) - The IP and port for connecting to the DBGp proxy server. Note: To test the debugger settings at any time, click Test.

Editing a server is performed using the Edit Server dialog, which is opened by selecting the server in the PHP Servers view and clicking the Edit icon or simply double-clicking a server.

Note:

The Edit Server dialog contains different configuration tabs, the appearance of which depends on the server type. The same tabs will not appear for each server.

This procedure describes how to edit the general details of a PHP server, such as the server name, debugger type and base URL.

To edit server details:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Server dialog is displayed.
  1. Configure the server details:
    • Server Name - The server display name in Zend Studio.
    • Base URL - The server base URL.
    • Document Root - document root of the web server.
  2. Click Finish.
    The server settings are saved.

This procedure describes how to edit Web API for a local or remote Zend Server in Zend Studio. Enabling Web API allows you to deploy applications to the server and monitor them for events.

To edit Web API:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Edit Server dialog is displayed.
  2. Select the Web API tab.
  1. Verify the Enable Web API check-box is selected.
  2. To change deployment details, enter the following details:
    • Host - Server host IP and port.
    • Key Name - Server Web API key name.
    • Key Hash - Server Web API secret key.
      -OR-

    Click Detect Automatically to auto-fill these details. During this process you will be required to enter the Zend Server UI credentials.

  3. Click Finish.
    The server Web API settings are saved.

This procedure describes how to edit debugger settings for a PHP server.

To edit server debugger settings:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Edit Server dialog is displayed.
  2. Select the Debugger tab.
  1. Select which server debugger you wish to debug with (Zend Debugger, XDebug).
  2. Configure the debugger settings:

Zend Debugger:

XDebug:

  • Client IP(s)/Host - Enter a list of IP addresses for the machine hosting Zend Studio, and allowed to connect to the debugger.
    Click Configure to configure which IP addresses should be used for establishing a connection with the debugger.

  • Port - The port Zend Debugger attempts to connect on the host.
  • Response Timeout (ms) - Amount of time for attempting to establish a connection before the debugging session is timed out.
  • Enable Zend Debugger Tunneling (see Edit Zend Debugger Tunneling for a Server).
  • Port - The port XDebug attempts to connect on the host.

  • DBGp Proxy - select this check-box to use a DBGp proxy server for debugging:
    • IDE Key - IDE Key XDebug passes on to the DBGp debugger handler.
    • Proxy (Host:Port) - The IP and port for connecting to the DBGp proxy server.

Note:

To test the debugger settings at any time, click Test.

  1. Click Finish.

Note:

These settings override the debugger settings configured in the Debuggers preferences dialog.

Dbgp Proxy

Dbgpproxy

This procedure describes how to edit the path mapping of a PHP server.

Using Path Mapping allows Zend Studio to search for files which are called from a certain location on the server in a local location during debugging/profiling.

To edit server path mapping:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Edit Server dialog is displayed.
  2. Select the Path Mapping tab.
  1. To add a new path map, click Add.
    The Add New Path Map dialog is displayed.
  1. Enter the server path from which you would like to create the path map. Files called from this location will be searched for in the path specified below.
  2. Select either the 'Path in Workspace' or 'Path in File System' option, and click Browse to specify the location.
  3. Select the 'Do not map..' option to specify a server path you do not want mapped to a local resource.
  4. Click OK.
    The path map is added to the server. The next time a file is called from the path on server, it will be searched for in the local location you have specified.

To edit your Path Map select the Path Map you would like to edit, click Edit and change the relevant information.

To remove your Path Map select the Path Map you would like to delete and click Remove.

Dbgp

This procedure describes how to edit automatic upload settings for a server in Zend Studio.

To edit automatic upload:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Edit Server dialog is displayed.
  2. Select the Automatic Upload tab.
  1. Click the Connection Profile drop-down menu to select a profile to use while uploading files to the server, or click Manage to add a new connection.
    For information on working with remote connection profiles, see Working with Remote Connection Profiles.
  2. Click Finish.
    The settings are saved for the server.

From the Edit Server dialog, you can add, edit and remove filters for application monitoring for a server. Filters define which specific URLs for a server are monitored.

For more information, see Working with Application Monitoring.

From the Edit Server dialog, you can add, edit and remove filters for Debug Mode on a server. Filters define which specific URL requests to a server trigger a debugging session.

Dbgpproxy

For more information, see Using Debug Mode.

Dbgproxy

This procedure describes how to edit SSH tunneling for a server in Zend Studio for remote debugging and profiling.

To edit SSH tunneling for a server:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Edit Server dialog is displayed.
  2. Select the SSH Tunneling tab.
  1. Verify the Enable Tunneling check-box is selected.
  2. Enter the following details:
    • Username - SSH connection user name.
    • Password - SSH connection password.
    • SSH Private Key - SSH connection private key. Click Browse to locate the key.
    • Port Forwarding - Click Add to add a new port forwarding configuration for remote debugging/profiling. Click here for more information on port forwarding.
    • HTTP Proxy:
      • Host - Proxy server.
      • Port - Proxy port.
  3. Click Finish.
    SSH Tunneling settings are saved for the server.

This procedure describes how to edit Zend Debugger tunneling for a server in Zend Studio for remote debugging and profiling.

To edit Zend Debugger tunneling for a server:

  1. In the menu-bar, select Window Show View PHP Servers.
    The PHP Servers view is displayed.
  1. Double-click the server you wish to edit, or click the Edit icon .
    The Edit Server dialog is displayed.
  2. Select the Debugger tab.
  1. Select the Enable Zend Debugger Tunneling check-box, and configure the following settings:
    • Automatically connect on startup - automatically creates a tunneling connection to the server when starting Zend Studio.
    • Specify return host - In some system configurations, a dedicated tunneling server is used which allows debug connectivity between Zend Studio and the server which is being debugged. In this case, select the check-box, and enter the IP address of the tunneling server to which the tunneling connection will be opened.
    • Send authentication information - If your Web server requires HTTP authentication, enter your User Name and Password in the Authentication category. Zend Studio sends the authentication information in the header.
  2. If your web server requires HTTP authentication, enter your username and password in the designated fields. Zend Studio sends the authentication information in the header.

  3. Click Finish.
    Zend Studio creates a tunneling connection for debugging on the remote server.

Copyright © 2017Rogue Wave Software

This procedure describes how to add a PHP server to Zend Studio for deploying applications.

Dbgproxy

For information on adding a Zend Server, see:

Dbgp Proxy Port Forwarding

To add a generic PHP server:

  1. From the Menu bar, select Window Show View PHP Servers to add the PHP Servers view to your perspective.

  1. In the PHP Servers view, click on the Add icon .
    The PHP Server Creation dialog is displayed.

  1. Select GenericPHP Server.

  2. Click Next.
    The Server details dialog is displayed.
  1. Enter the following information:

    • Name: Server name.

    • Base URL: Server URL (e.g., <protocol>://<server url>[:<port>]).
    • Document Root: Web server document root folder.
  1. Click Next.
    The Debugger Settings dialog is displayed.
  1. Select which server debugger you wish to debug with - Zend Debugger, XDebug (Default is <none>).
  2. Configure the debugger settings:

Zend Debugger:

XDebug:

  • Client IP(s)/Host - Enter a list of IP addresses for the machine hosting Zend Studio, and allowed to connect to the debugger.
    Click Configure to configure which IP addresses should be used for establishing a connection with the debugger.

  • Port - The port Zend Debugger attempts to connect on the host.
  • Response Timeout (ms) - Amount of time for attempting to establish a connection before the debugging session is timed out.
  • Enable Zend Debugger Tunneling - Select this option to configure tunneling to the server. For more information on these configurations, see Editing Zend Debugger Tunneling to the Server).
  • Port - The port Zend Studio listens on (default: 9000).

  • DBGp Proxy - select this check-box to use a DBGp proxy server for debugging:
    • IDE Key - IDE Key XDebug passes on to the DBGp debugger handler.
    • Proxy (Host:Port) - The IP and port for connecting to the DBGp proxy server.

Note:

These setting override global debugging settings (Window Preferences PHP Debug Debuggers Zend Debugger/XDebug).

  1. To test the debugger settings at any time, click Test.
  1. Click Next.
    The Path Mapping dialog is displayed.
  1. Click Add.
    The Add New Path Map dialog is displayed.
  2. Define a new path for the server and in your workspace or file system, and click OK.
  1. Click Next.
    The Automatic Upload dialog is displayed.
  1. Click the Connection Profile drop-down menu to select an existing connection profile, or click Manage to edit or create a connection.
  1. Click Next.
    The Configure SSH Tunneling dialog is displayed.
  1. To enable SSH tunneling, select the Enable SSH Tunneling check-box, and enter the following details:
    • Username - SSH connection user name.
    • Password - SSH connection password.
    • SSH Private Key - SSH connection private key. Click Browse to locate the key.
    • Port Forwarding - Click Add to add a new port forwarding configuration for remote debugging/profiling.
      Click here for more general information on port forwarding.
    • HTTP Proxy:
      • Host - Proxy server.
      • Port - Proxy port.
  1. Click Finish.
    Zend Studio validates the new remote Zend Server, and adds it to the PHP Servers view.

Dbgp Proxy Phpstorm

Copyright © 2017Rogue Wave Software