![]() ![]() If you are already familiar with Eclipse, you can just skip over this section. We're going to write a simple PHP script and run and debug it to test that Eclipse is set up correctly. So complete the screen as shown above and press OK. If we change this here, Eclipse will create the URLs for us automatically. So the URLs to the HTML and PHP files in our project will need to include the "joomla_development" directory name (for example, " Project/test.php"). Recall that we created our workspace, called "joomla_development", under the "c:\xampp\htdocs" directory. Select the "Default PHP Web Server" (the only one in the list) and press the Edit button to display the Edit Server dialog shown below. Next, select the "PHP Servers" item on the tree to display the screen shown below. You can experiment with these settings to make Eclipse best for you. Expand PHP and Debug and select "Workbench Options", as shown below.Ĭhange the settings as shown above. Select the menu Window / Preferences to open the Preferences dialog. If so, you can eliminate these messages by changing the "Output Capture Settings / Capture stdout" from "copy" to "off". Do you wish to Debug? Line: 1 Error: Syntax error On some systems, you may get Javascript errors like the following:Ī Runtime Error has occurred. (I also changed the port number for the Zend debugger to "10001" just to get rid of the port 9000 warning message.) Highlight the XDebug line and press Configure to display the screen below.Ĭhange the port number to "10000" as shown, to match what we put in the "php.ini" file earlier. In order to ensure compatability with php.ini, press the "Configure" link for the PHP Debugger to display the screen below. (We're going to change the ports now anyway.) We'll see this later on when we run the debugger. This means that the debugger will always break or suspend execution at the first line of code. ![]() Notice that the "Break at first line" box is checked. Expand the PHP node on the left and select "Debug" to display the screen below. ![]() Navigate to Window / Preferences, as shown below. The first thing we need to do is to tell Eclipse to use the XDebug we installed earlier. ![]() You can install XDebug later if you need it. If you are new to Eclipse for PHP, you can skip this section and use Eclipse without XDebug if desired. XDebug is NOT required to be able to use Eclipse for PHP development. Note: Getting XDebug to work on some workstations can be difficult. 1.5.1 Debugger Doesn't Stop at Breakpoint. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |