![]() You can use the following commands on the IBM i to stop and start the server: ENDTCPSVR SERVER(*HTTP) HTTPSVR(WEBSMART) If you haven't already, end and restart the WebSmart IDE. Note: If you can't find this file, try looking for this line in etc/php.ini. zend_extension_=/usr/local/zendphp7/lib/debugger To disable Zend's debugger, find the line below in the file (if present) and insert a semi-colon at the start of it to comment it out: ![]() Zend's debugger only works with Zend Studio and can't be used with other IDEs. In etc/conf.d/debugger.ini, disable the Zend debugger. You can also just ask your Network Admin! Note that these instructions may vary by PC operating system. In the Support tab you can find your IP address. In the list of network connections, right-click the Local Area Connection icon and select the Status option. One way to find your IP address is by going to Start > Control Panel and selecting Network Connections. To configure the PHP debugger for multiple users, replace the value IP_ADDRESS with the IP address of the PC on which you are running the proxy server. To configure the PHP debugger for a single user, replace the value IP_ADDRESS with the IP address of the PC on which you are running WebSmart. The single and multi-user setup instructions here are slightly different: In your php.ini or xdebug.ini configuration, set the xdebug.remote_host value. If you're running Zend Server 9 or later, modify the line for zend_extension to zend_extension= "xdebug.so" Xdebug.remote_port=9000 xdebug.remote_handler="dbgp" ace_output_dir="" xdebug.remote_autostart=On xdebug.idekey="IDEKEY"Ĭonfirm the filename in zend_extension matches the name you use when you copied xdebug.so. Add these lines (omit if adding it to xdebug.ini): In your IFS, open the file etc/php.ini ( etc/conf.d/xdebug.ini for Zend Server 8 or later). These options are discussed in detail in the section "PHP Debugging" on page 1224 of Chapter 29 of the WebSmart User Guide. If you are hosting the debugger on your PC, use 127.0.0.1 The IP address where the proxy is running. The IDE key can be anything, as long as it is unique for each IDE that is connecting to the proxy server.Ĭheck this option to use a proxy server for the debugger, to enable multiple users. Select the PHP/Debugging section to present these options:įor multi-user debugging configuration, these values are important: Debugger IDE key To configure the debugger for multiple users, launch the WebSmart IDE and go to the Tools/Options menu. The WebSmart PHP debugger is by default configured in the IDE for a single user. This starts the proxy listening for Xdebug conversations from the PHP server on port 9000 and listening for WebSmart IDEs on port 9001.Ĭonfigure WebSmart PHP's initial settings. Open a command prompt and run the sample batch file pydbgpproxy.bat. Within this folder, we also include a sample batch file named pydbgpproxy.bat that makes it easier to launch the proxy server. Copy the folder pydbgpproxy to the machine you will set up as the proxy server. Your WebSmart IDE installation folder includes the debug proxy server in a folder by default installed to C:\esdi\websmart\bin\pydbgpproxy\. This is typically installed on a server PC that is always running. To run the PHP debugger for multiple developers you must set up a a thirdparty proxy server for the WebSmart IDEs to connect to. Start pydbgpproxy.exe on the proxy server machine. If you are setting up the debugger for a single user, continue with step 4. Steps 2 and 3 are only required if you are setting up the PHP debugger for multiple developers. You will add configuration details to this file in Step 4. ![]() Open your IFS and copy the file xdebug.so that matches your version of PHP to lib/debugger/. When you install WebSmart on the server the file xdebug.so is created in your IFS, in the folder /esdi/websmart/. ![]() If you're running Zend Server 9 or later you can skip step 1 as xdebug.so is included with these versions of Zend Server.Ĭopy the xdebug.so file to your Zend IFS directory. etc/php.ini would refer to /usr/local/zendphp7/etc/php.ini for Zend Server 9). We're going to use paths relative to the install directory in these instructions to try to prevent confusion (e.g. Here is a list of where each version installs to. The install directory for Zend Server varies depending on the version. If you will only use WebSmart ILE, you can skip this step. If you intend to develop PHP programs, you may want to use WebSmart's PHP debugger. This is only required for WebSmart PHP installs. Step 10: Set up the PHP Debugger (for single or multiple users)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |