Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies This program makes use of the Zend Scripting Language Engine: PHP and xdebug is both installed from Debian packages.īut when I start the debugging, the browser opens the page without any breaks and Netbeans says: "Waiting for Connection (netbeans-xdebug)" and nothing happens. Otherwise, you'll be able to see them all.ĭisplay Name: Give a description name like "LOCAL" or whatever you want.I want to use Netbeans 6.9.1 with xdebug 2.1.0 on Linux version 2.6.32-5-486 (Debian 2.6.32-30). Port: 3306 (or whatever port MAMP is currently configured for MySQL to run at.)ĭatabase: Leave it blank unless you really do want access to just one database. Next, right-click on MySQL (Connector/j Driver) and choose "Connect Using. Thus, I just went to the Services Window: Database > Drivers. Yet another way to get over that querystring 404 hurdle!Īs for the services panel, that's possible too.įor me, I changed my MAMP setting to use the default port for MySQL: 3306. He shows how not to automatically open the browser when clicking debug. Let's not forget Leonard Teo's contributions either. I promise I didn't post to get a plug but thanks! :-) (actually the videos are a little embarrassing.) Now if only there was a way to get Netbeans to talk to MySQL/Mamp so that I could use their neat little "Services" panel to access the tables, life would be grand! Thanks for dropping by! Actually I almost forgot your plug at the end of my post (now-edited). If you'd like to see this in action and learn more about what you can do with debugging, check out the tuts on his site:īrett! PLUG: This post was inspired by "Brett" (aka: 'Bretticus') who created a fantastic introduction screencast (series) to debugging with Nebtbeans & Xdebug. Personally, I don't know much about this beyond what's in this post, but if you post questions and I can help you I'll give it a shot! If there are errors in this post or if I've left anything out, please feel free to comment below so others might benefit. Go back to Netbeans and hit F7 to step through the process or F5 to run uninterrupted. *** It will seem like the site/web-page is 'hanging' but in fact it's waiting for YOU to proceed, controlling every step of the process through the debug toolbar (or keyboard shortcuts). A new Firefox window (or tab) will launch with your project/site/app in it, and Netbeans will say 'netbeans-xdebug + running' in the bottom/right corner of the window. Now setup (or open) your NB CI project of choice, and hit command+F5 or 'debug project ' from the debug-menu. Open config.php, and find the line that says: (taken from Phil Sturgeon's post on StackOverflow) Next you'll need to make two small changes to your CodeIgniter config file (/application/config/config.php). If you're too lazy to go through all that trouble, you can grab it directly from Choose 'Add to Firefox' and you're good! choose the 'Get Addons' tab and enter 'Xdebug' in the search field. Start by downloading & installing the Xdebug add-on for FireFox, which at this writing stands at version 1.4. While I expect the process to be similar on Windows, I have absolutely no clue how to go about it. Just follow the steps and presto! You'll be debugging in no time.Ĭaveat: I'm a Mac user. What follows is a basic tut on how to get Netbeans/FireFox/Xdebug & CodeIgniter all working nicely together, and in under 15 minutes. So I decided to share my spoils on the CI forum, in case others might benefit from the knowledge. Plenty of Netbeans & Xdebug goodness all under one roof (well. Now I can see pretty much any value, break on specific lines, add watches, and lots more. Gone are the days of 'test_controller' filled with 'echo' & 'prin_r' statements, or the globals-guessing-games. After trying forever to get Netbeans to play nicely with Xdebug & CodeIgniter, I finally got it to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |