Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug weirdness: Scripts loading twice?
XDebug weirdness: Scripts loading twice? [message #98345] Tue, 09 June 2009 15:01 Go to next message
Eclipse UserFriend
Hi all -
First off, apologies if this is the wrong forum for this kind of
thing. I spent all morning on this one so I'm a bit desperate. Here's the
issue:

I have been using Eclipse PDT w/ XDebug for a little while now... and was
really liking it... unfortunately, at some point yesterday I noticed
something was weird with debugging.

Basically, all my scripts now run TWICE after launching in debug mode -
here's the repro:

1) Right-Click "test.php" file > Debug As > PHP Web Page
[note: in this case, test.php simple invokes phpinfo()]

2) Debug view launches, browser (firefox) pauses

3) Hit F8 to resume (or click button)

4) Page loads w/ GET string info
(XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=12445731113882)
[note: shouldn't it always use POST?)

5) Click "Refresh" in browser

6) Hit F8 (resume) in Eclipse debug view

7) Script runs, then runs AGAIN pausing at the first line. Browser is not
paused (I can hit refresh again and it will load)

8) Back in Eclipse debug view, I now have to press F8 a number of times
before the script will stop re-running itself (roughly correlating to the
number of times I clicked refresh in the browser).


My setup is pretty up-to-date (XAMPP for windows 1.7.1, PDT 2.0.0, XDebug
2.0.4). Running WinXP.

I'm pretty sure my config is correct (I followed this
http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pd f )

I did install and then uninstall the "Simpletest" plugin for the CakePHP
framework... as well as CakePHP itself.

Anyway, has anybody seen behavior like this? Any suggestions on what to
poke at to fix it?

Thanks in advance!
-bob
Re: XDebug weirdness: Scripts loading twice? [message #98360 is a reply to message #98345] Wed, 10 June 2009 04:57 Go to previous messageGo to next message
Eclipse UserFriend
This doesn't sound like a PDT problem. Just out of interest do you have "Accept Remote Session
(JIT)" enabled or the Multisession Manager enabled ? You can check this in the Xdebug preferences page.

Dave Kelsey

Robert Fever wrote:
> Hi all -
> First off, apologies if this is the wrong forum for this kind of
> thing. I spent all morning on this one so I'm a bit desperate. Here's
> the issue:
>
> I have been using Eclipse PDT w/ XDebug for a little while now... and
> was really liking it... unfortunately, at some point yesterday I noticed
> something was weird with debugging.
> Basically, all my scripts now run TWICE after launching in debug mode -
> here's the repro:
>
> 1) Right-Click "test.php" file > Debug As > PHP Web Page
> [note: in this case, test.php simple invokes phpinfo()]
>
> 2) Debug view launches, browser (firefox) pauses
>
> 3) Hit F8 to resume (or click button)
>
> 4) Page loads w/ GET string info
> (XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=12445731113882)
> [note: shouldn't it always use POST?)
>
> 5) Click "Refresh" in browser
>
> 6) Hit F8 (resume) in Eclipse debug view
>
> 7) Script runs, then runs AGAIN pausing at the first line. Browser is
> not paused (I can hit refresh again and it will load)
>
> 8) Back in Eclipse debug view, I now have to press F8 a number of times
> before the script will stop re-running itself (roughly correlating to
> the number of times I clicked refresh in the browser).
>
>
> My setup is pretty up-to-date (XAMPP for windows 1.7.1, PDT 2.0.0,
> XDebug 2.0.4). Running WinXP.
>
> I'm pretty sure my config is correct (I followed this
> http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pd f )
>
> I did install and then uninstall the "Simpletest" plugin for the CakePHP
> framework... as well as CakePHP itself.
> Anyway, has anybody seen behavior like this? Any suggestions on what to
> poke at to fix it?
>
> Thanks in advance!
> -bob
>
>
Re: XDebug weirdness: Scripts loading twice? [message #98390 is a reply to message #98360] Wed, 10 June 2009 13:31 Go to previous messageGo to next message
Eclipse UserFriend
"Use Multisession" is unchecked and JIT is set to "off"
Re: XDebug weirdness: Scripts loading twice? [message #98420 is a reply to message #98390] Wed, 10 June 2009 17:31 Go to previous message
Eclipse UserFriend
Originally posted by: dkel50.hotRemoveThismail.com

I did try to recreate your problem but was unable to. If either of these options are enabled then
you may have got simultaneous debugging if xdebug on the server tried to initiate a new debug
session. I don't think the problem is with PDT and maybe an issue with the server config. You may
want to try an apache setup to see if you get the same problem ? Or you could try another tool that
supports xdebug debugging and see if it shows the problem

Dave Kelsey

Rovert Fever wrote:
> "Use Multisession" is unchecked and JIT is set to "off"
>
Previous Topic:[Announce] PDT 2.1.0RC4 is available
Next Topic:Eclipse Galileo and PDT 2.1 - stability
Goto Forum:
  


Current Time: Sat Apr 19 18:00:18 EDT 2025

Powered by FUDForum. Page generated in 0.04691 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top