usr/local/share/aptana studio...

15
/usr/local/share/Aptana_Studio_3/AptanaStudio3 http://xdebug.org http://www.aptana.com/products/studio3

Upload: others

Post on 19-Mar-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

/usr/local/share/Aptana_Studio_3/AptanaStudio3

http://xdebug.org

http://www.aptana.com/products/studio3

Page 2: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |
Page 3: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Coding Standards

● Download the Aptana PHP Coding Style from Moodle

● Window | Preferences | Aptana Studio | Formatter | PHP | Import

Page 4: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Setup the Debugger

● Window | Preferences | Aptana Studio | Editors | PHP | PHP Interperter

● Add

Name: php

Executable path: /usr/bin/php

PHP ini file: /etc/php5/cli/php.ini

PHP debugger: XDebug

Page 5: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |
Page 6: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |
Page 7: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Add a new file namedFirstPHP.php from thePHP Template

Page 8: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Get ready to synchronize with Gray

● Window | Preferences | Aptana Studio | Publishing

Add .project to the list of ignored files (dot project)Add queries to the list of ignored files

The first contains your Aptana settings.The second will be a directory to store your .sql files

Page 9: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Go to gray and make the directory /space/https/PUNetID/TestPHP

mkdir /space/https/PUNetID/TestPHP

Page 10: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

ChooseFTP/SFTP/FTPS

Page 11: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

The remote path mustbe the full path to yourweb space on gray.

/space/https/PUNetID/TestPHP

Page 12: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |
Page 13: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Under Advanced Options

UploadsUncheck:

Others: Read Write

If .project shows up go back 5 slides!

Page 14: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

https://gray.cs.pacificu.edu/PUNetID/TestPHP/FirstPHP.php

Page 15: usr/local/share/Aptana Studio 3/AptanaStudio3zeus.cs.pacificu.edu/chadd/cs445s13/Lectures/Aptana.pdf · Coding Standards Download the Aptana PHP Coding Style from Moodle Window |

Debugger

● Let's add the following code to FirstPHP.php

<?php

  phpinfo();

  $i = 0; //initialize variable  while( $i < 10 )  {    printf ("%d\n",$i);    $i++;  }

?>

Place your cursor on theprintf line and use thetoggle breakpoint buttonat the top to set a breakpoint.

Click the down arrow next to the green bug and select Debug As | PHP Script