That's it! You can now switch to debug perspective in aptana, add breakpoints in your code, inspect variable values, etc. Last step is add an extension for your favourite browser, in order to enable or disable debug easily. Select XDebug as server debugger and create a new PHP server, with following data: wget sudo mv sktop /usr/share/applications/sktop. sudo unzip name of Aptana Studio ZIP file here.zip -d /opt. Go to Run → Debug Configurations, select PHP Web Page, and press the 'New' button. Install the prerequisites with apt-get install. Now you should make Aptana to use an external browser, in Window → Preferences → General → Web Browser. It should be in the installed debuggers, and with the same port that is in xdebug.ini. General preferencesįirst, check that Xdebug is properly configured in Window → Preferences → Aptana Studio → Editors → PHP → Debug. We'll asume Xdebug is working, and go straight to configure Aptana: 2.1. Xdebug.profiler_output_dir=/var/log/xdebug In case you need it in order to change port, i.e., configuration file is /etc/php5/apache2/conf.d/xdebug.ini. Xdebug is a PHP extension for powerful debugging, using BDGp protocol, that can be linked to Aptana, so it catches all breakpoints from your local web server, in this case, Apache. #Aptana studio for ubuntu how toThis article describes how to configure your Ubuntu development machine with debug capabilities. Large PHP developments, like Joomla!, Magento or PrestaShop can be very complex to debug without using a tool that provides variable inspections and breakpoints.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |