Now you can go to your project by surfing to it using the browser or by running the specific php file in the command line. If you wish to be able to debug your project via the command line, add to /etc/php5/cli/php.ini file the same lines you added to /etc/php5/apache2/php.ini, and run the following commands: sh -c "echo 'export XDEBUG_CONFIG=\"idekey=netbeans-xdebug\"' > /etc/profile"Īll that's left on NetBeans is to navigate to Debug -> Debug Project. Restart the Apache web server: sudo service apache2 restart Set some breakpoint at an interest point in your code by clicking on the line number in NetBeans. In our example we set them to "9000"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |