Xdebug and NetBeans

Hi,

I’m running Xdebug in NetBeans. It seems to be normal behaviour that when you stop an Xdebug session you are redirected from NetBeans to a new browser tabs that opens up which tells you that the bedug session has ended. Does anyone know if its possible to stop this behaviour because it’s annoying to have to keep switching windows just because i have stopped a debug session. Ideally i don’t want any new browser tab to be created to tell me what i already know.

Thanks!

I don’t know if it’s possible to stop Netbeans from opening a new window on closing xdebug session but it’s possible to stop Netbeans from opening any browser windows, both on starting and stopping the session. Then you would need a browser extension to handle this for you. I use Easy Xdebug in my Seamonkey (this is actually a Firefox extension) and it works well. You have to configure Netbeans not to open any browser windows so they don’t bother you any more (see instructions on easy xdebug page).

Debugging now works like this for me:

  1. In Netbeans I press the button to start debugging - and then no new pages are opened in my browser, which I like because most of the time I already have my web application open so I don’t need the additional clutter. Also, Netbeans by default always opens the home page (configured in project settings), which doesn’t make sense since I usually want to debug a different page.

  2. My browser still functions normally, that is the pages are being opened without debugging. It is only when I enable xdebug session by pressing the button in the browser toolbar that the debugging session starts - from then on any new page opened in the browser is debugged in Netbeans.

  3. When ending the session I press the button in Netbeans and also stop the session in my browser.

This may seem like little improvement because I have to also start and stop debugging in my browser but overall I find it better and cleaner without all those new windows/tabs that I have to close immediately anyway. Also, it’s good that Netbeans doesn’t start debugging my home page every time I start the xdebug session.