Goodbye dsm() - Developing with the NetBeans IDE

skowyra's picture
Time: 
3:10-4:00 PM
Room number: 
218
Speaker: 
Jim Skowyra
Intermediate
Code & Development

If you use dsm() often, then chances are good you'll love what NetBeans can offer. Get variable, array and object values right in your development IDE. But NetBeans really shines when it comes to debugging your code.

This session will cover the capabilities of the NetBeans Integrated Development Environment.

We'll start with a brief look at the difference between an editor such as NotePad++ and an IDE. Then we'll cover:

The interface windows
Code completion for PHP, javascript and CSS
Breakpoints and Debugging line by line
Set up for conforming to Drupal code formatting standards
SVN and Git integration
The Call Stack
Database integration

REFERENCE SITES
NetBeans for PHP Tutorial
https://netbeans.org/kb/docs/php/quickstart.html

Configuring NetBeans for Drupal
https://drupal.org/node/1019816

VirtualBox
https://www.virtualbox.org/wiki/Downloads

DrupalPro
https://drupal.org/project/drupalpro

Using Git with Pantheon
http://www.pasadamedia.com/news/pantheon-site-development-workflow

Ubuntu
http://www.ubuntu.com/download

Install the LAMP stack on ubuntu (Apache, MySQL, PHP)
http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maveri...

Restarting Apache - Fix "Could not reliably determine the servers . . . .'
http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-det...

How to Install XDEBUG
http://ubuntuforums.org/showthread.php?t=525257

Install Java7 JDK
http://www.gaggl.com/2012/05/installing-oracle-java7-jdk-on-ubuntu-12-04/

Install Netbeans
http://connectwww.com/how-to-install-netbeans-ide-on-ubuntu-12-04/2286/

Drush
http://drupal.org/project/drush

---------------------------------------------------------
BONUS FEATURES
Jeff Eaton Explains Drupal
http://stackoverflow.com/questions/1068556/how-drupal-works/1069613#1069613

Drupal Quickstart - A pre-packaged downloadable PHP/LAMP Development Environment for Drupal. Runs on VirtualBox
http://drupal.org/project/quickstart

Learn to Program in PHP - Geared toward people who want to learn PHP via the methods employed by Drupal
http://drupal.org/node/1880590

Comments

jeoware's picture

In sandbox, I wrote a module called PHP Variable Hunter. It's a debugging tool more specific than print_r or dpm. You call it $result = pvh($content, 'text_to_search'), it returns all the variable members containing 'text_to_search' both printed to the screen and returned in an array, so you can analyze the members without stopping the debug session.
I'd like to give a short demo of how to use it in NetBeans.

A Few of Our Sponsors: