NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Debugging tip: Xdebug Helper in Firefox w/ NetBeans

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
SoyaWaxJim



Joined: 05 Oct 2008
Posts: 3

PostPosted: Sun Oct 05, 2008 8:22 pm    Post subject: Debugging tip: Xdebug Helper in Firefox w/ NetBeans Reply with quote

Hello NetBeans PHP team,

I am enjoying my initial use of NetBeans 6.5 for PHP. Here is a tip for those using Firefox and NetBeans that may be helpful.

1. Get Xdebug Helper add-on here.

2. Once installed, go to this add-on's Options dialog and set the idekey to 'netbeans-xdebug' as shown in the attached png image.

3. In NetBeans, kick off a debug session and leave it running. That is don't 'red button' stop the session. This, in effect, leaves NetBeans in the typical Xdebug 'listening' mode familiar to folks who have used other PHP IDEs.

4. Now you go to your Firefox browser and toggle debugging on and off with a click of the Xdebug Helper icon in the status bar. When on, NetBeans will hear the debug request and you are debugging. Once that page-rendering is done and you are back into Firefox, you can turn your debug session on and off at will.

5. When you are fully done with debugging, click the 'Finish debugger session' red button in the NetBeans toolbar and your are out of Xdebug listening mode.

BTW, if your default (under Windows) browser is Internet Explorer, your IE will stay in Xdebug session mode while you can then go over to Firefox and toggle debugging on and off as described above.

This ability to toggle Xdebug on and off is very useful when working on sites/platforms, such as content management systems like Drupal. Very often you want to debug form submissions and not every page load that may happen while interacting with a live site.

If there was anything on my wish list, it would be to have a 'Start listening' feature in NetBeans where you would not have to go through the initial run of a debug thread on the home page of a project site. The work-around described here essentially lets you get into listening mode. It would be cleaner/clearer if you would have this feature explicit in the NetBeans basic debug feature set.

Again, keep up the great work NetBean PHP team.



XdebugHelper_firefox_NetBeans.png
 Description:
Showing NetBeans-friendly config of Xdebug Helper in Firefox.
 Filesize:  87.4 KB
 Viewed:  12681 Time(s)

XdebugHelper_firefox_NetBeans.png


Back to top
radek matous
Posted via mailing list.





PostPosted: Mon Oct 06, 2008 8:03 am    Post subject: Debugging tip: Xdebug Helper in Firefox w/ NetBeans Reply with quote

SoyaWaxJim wrote:
Quote:
Hello NetBeans PHP team,

I am enjoying my initial use of NetBeans 6.5 for PHP. Here is a tip for those using Firefox and NetBeans that may be helpful.
1. Get Xdebug Helper add-on here (https://addons.mozilla.org/en-US/firefox/addon/3960).
2. Once installed, go to this add-on's Options dialog and set the idekey to 'netbeans-xdebug' as shown in the attached png image.
3. In NetBeans, kick off a debug session and leave it running. That is don't 'red button' stop the session. This, in effect, leaves NetBeans in the typical Xdebug 'listening' mode familiar to folks who have used other PHP IDEs.
4. Now you go to your Firefox browser and toggle debugging on and off with a click of the Xdebug Helper icon in the status bar. When on, NetBeans will hear the debug request and you are debugging. Once that page-rendering is done and you are back into Firefox, you can turn your debug session on and off at will.
5. When you are fully done with debugging, click the 'Finish debugger session' red button in the NetBeans toolbar and your are out of Xdebug listening mode.
BTW, if your default (under Windows) browser is Internet Explorer, your IE will stay in Xdebug session mode while you can then go over to Firefox and toggle debugging on and off as described above.
This ability to toggle Xdebug on and off is very useful when working on sites/platforms, such as content management systems like Drupal. Very often you want to debug form submissions and not every page load that may happen while interacting with a live site.
If there was anything on my wish list, it would be to have a 'Start listening' feature in NetBeans where you would not have to go through the initial run of a debug thread on the home page of a project site. The work-around described here essentially lets you get into listening mode. It would be cleaner/clearer if you would have this feature explicit in the NetBeans basic debug feature set.

AFAIK already reported as request for enhancement. Definitely agree this
should be implemented, but its too late for 6.5.

-thanks
Radek
Quote:
Again, keep up the great work NetBean PHP team.

------------------------
--Jim Salmons--

www.SoyaWaxInternational.com


Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo