Issue with Debugger failing when...

  • From: Randy Girard < >
  • To:
  • Subject: Issue with Debugger failing when...
  • Date: Wed, 18 Apr 2012 11:08:50 -0700

First off I tried to join the forum, but never received the activation
email (failed on both my work and personal email, both are with gmail).
Then found these mailing lists...

I'm having a serious issue with the IDE failing to work with the
debugger. I am running 7.1.1 on OSX 10.6... If I visit a page from a
different domain on my webserver then nothing loads, and the debugger
stops working.

Here are the steps:

1.) I run Debug Project, it opens a tab in the browser, the IDE reads
'netbeans-xdebug running'.

2.) Open a new tab, and visit any php page on a different domain.
    - I have a wildcard subdomain pointing to my local IP within the
network, and I add virtual hosts to MAMP for testing.
    - The new page does not load. Status reads 'Waiting for ...' in the
browser.
    - Original page stops working as well. It seems the server is
locked up.
    - Visiting /index.php?XDEBUG_SESSION_START=netbeans-xdebug does not
work either

3.) By clicking STOP on the IDE, the server becomes responsive again.
Sites now work.

4.) Clicking Debug Project now reads 'Waiting For Connection
(netbeans-xdebug)'
    - a new page is never opened in the browser.

5.) Restart the IDE, and everything then works as expected.

6.) Repeating the process and instead restarting servers, browser, etc
has no affect.

7.) If I append ?XDEBUG_SESSION_START=netbeans-xdebug to the 2nd (new)
tab, then both seem to continue working.

It seems the problem is caused from visiting a different domain
(cookies?) but will no longer launch a new browser / tab? Perhaps I'm
doing something strange, or maybe something I need to configure?


Here is a temporary fix (of course this is code from my CMS, but should
make sense):

    //+++ TODO Temporary FIX for netbeans debugger
        if ( @DEBUG && @$_GET[ 'XDEBUG_SESSION_START' ] ==
'netbeans-xdebug' )
        {
            web::cookie( 'XDEBUG_SESSION', 'netbeans-xdebug', (60 * 60
* 24 * 7), '/', '.randy.binternaltome.net' );
        }

It seems as long as the XDEBUG_SESSION cookie is set, this doesn't
happen. The above temporary fix does not however cover accessing from an
IP, etc.




Issue with Debugger failing when...

Randy Girard 04/18/2012

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 236 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close