Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug session is lost after some time without debugging it(xdebug or eclipse debug session stops after some minutes without debugging it)
xdebug session is lost after some time without debugging it [message #886285] Thu, 14 June 2012 16:17 Go to next message
Spacesoul blop is currently offline Spacesoul blopFriend
Messages: 9
Registered: April 2012
Junior Member
I have an issue with xdebug and Eclipse PDT with the debug session being lost over time.
When I am debuging the code and I catch an error, I usually go to watch variables and search some info in Internet. After some minutes (usually 3 o 4 minutes or more) without debugging the code, the debug session doesnt work anymore and doesnt stop at breakpoints, and I had to completly reset it with 'Terminate' and 'Launch' it again.

I have looked for possible fixes at cookies, session time and php.ini settings but nothing fixed it.
Info:
- Windows 2003 32 bits, 2GB RAM.
- php 5.4.0 TS,VC9.
- Xdebug v2.2.0rc1
- Apache 2.2.22
- Eclipse PHP - PDT 3.0.2
Eclipse for PHP Developers 3.0.2.v2011102768
Eclipse Web Developer Tools 3.3.2.v201111030500
Eclipse XML Editors and Tools 3.3.2.v201112072049
...

php.ini:
[dba]
phpedit xzend debugger extension
zend_extension = c:\php5\ext\php_xdebug-2.2.0RC1-5.4-vc9.dll
xdebug.remote_port = 9000
xdebug.remote_enable = 1
xdebug.profiler_enable_trigger = "on"
xdebug.profiler_enable = 1
xdebug.remote_host="127.0.0.1"
xdebug.profiler_output_name = "cachegrind.out%t"
xdebug.remote_cookie_expire_time = 36000
session.gc_maxlifetime = 36000

[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.JIT_enabled=Off
debugger.JIT_level=3
debugger.hosts_deny=ALL
debugger.hosts_allow=127.0.0.1
debugger.ports=7869



Steps already done which didnt fix it:
- Added xdebug cookie expire time and php session.gc_maxlifetime in php.ini, and reset apache server.
- Changed xdebug session expire time to 10 hours instead the one hour default.
- Navigator symfony Cookies are set to expire after one month.
- Other things, I have two computers with the same setup installed and I get the session lost/broken in both of them after 2 or 3 minutes debugging and going out.

It is there anyway I can manually see the cookies of the internal web navigator of Eclipse? I would like to see if the Xdebug cookie is set with the right expire time in the Eclipse internal web navigator and discard that problem.

My php Eclipse PDT version is 3.0.2, should I update some packages or change something to solve the issue?

Any help is welcome, thanks a lot Smile


***I have just seen there is a new version of xdebug, stable release v2.2.0. Testing it right now since seems to solve some problems debugging and stopping at breakpoints Very Happy

**Edit2: The new stable xdebug v2.2.0 seems to work fine and a lot better than the previous versions. I will do more tests though.

[Updated on: Mon, 18 June 2012 08:48]

Report message to a moderator

Re: xdebug session is lost after some time without debugging it [message #899806 is a reply to message #886285] Thu, 02 August 2012 12:09 Go to previous messageGo to next message
chen thierry is currently offline chen thierryFriend
Messages: 24
Registered: June 2010
Junior Member
I face that problem since I use PDT+xdebug and I'm very interested in your solution
Where do you see the xdebug version installed and how do you update it?
Re: xdebug session is lost after some time without debugging it [message #899811 is a reply to message #899806] Thu, 02 August 2012 12:30 Go to previous messageGo to next message
Spacesoul blop is currently offline Spacesoul blopFriend
Messages: 9
Registered: April 2012
Junior Member
hi chen, I would suggest to check your php.ini file and see what xdebug file version is loaded:
zend_extension = c:\php5\ext\php_xdebug-stable-5.4-vc9.dll
xdebug.remote_port = 9000
xdebug.remote_enable = 1
xdebug.profiler_enable_trigger = "on"
xdebug.profiler_enable = 0
xdebug.remote_host="127.0.0.1"
xdebug.profiler_output_dir = c:\php5
xdebug.profiler_output_name = cachegrind.out.%p
xdebug.remote_log = c:\php5\xdebuglog.log



You can also check the version in a standalone web adding the code:
<?php
  phpinfo();
?>


http:// localhost:8080/index.html
add that code to index.html or to another web.

You will see something like this:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1dev, Copyright (c) 2002-2012, by Derick Rethans
Re: xdebug session is lost after some time without debugging it [message #899899 is a reply to message #899811] Thu, 02 August 2012 18:04 Go to previous messageGo to next message
elkuku is currently offline elkukuFriend
Messages: 22
Registered: July 2009
Junior Member
Actually this was the reason why I dropped PDT (apart from ZEND taking
it over..)

Try PhpStorm ;)

Am 02.08.2012 07:30, schrieb Spacesoul blop:
> hi chen, I would suggest to check your php.ini file and see what xdebug
> file version is loaded:
> zend_extension = c:\php5\ext\php_xdebug-stable-5.4-vc9.dll
> xdebug.remote_port = 9000
> xdebug.remote_enable = 1
> xdebug.profiler_enable_trigger = "on"
> xdebug.profiler_enable = 0
> xdebug.remote_host="127.0.0.1"
> xdebug.profiler_output_dir = c:\php5
> xdebug.profiler_output_name = cachegrind.out.%p
> xdebug.remote_log = c:\php5\xdebuglog.log
>
>
> You can also check the version in a standalone web adding the code:
> <?php
> phpinfo();
> ?>
>
> http:// localhost:8080/index.html
> add that code to index.html or to another web.
>
> You will see something like this:
>
> This program makes use of the Zend Scripting Language Engine:
> Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
> with Xdebug v2.2.1dev, Copyright (c) 2002-2012, by Derick Rethans
Re: xdebug session is lost after some time without debugging it [message #979351 is a reply to message #899899] Sat, 10 November 2012 21:21 Go to previous message
Damiano Venturin is currently offline Damiano VenturinFriend
Messages: 1
Registered: May 2012
Location: Saronno Italy
Junior Member

I run into a problem which looks to be similar to yours: my debugging session went suspended.

I solved by setting Debug Response Timeout to a higher value (from 50000ms to 600000 ms)

Procedure for Eclipse Indigo:

Eclipse -> Window -> Preferences -> PHP -> Installed Debuggers

Select Zend Debugger from the items -> Configure

The last form item Debug Response Timeout

Cheers

Dam


Dam
www.venturin.net
Previous Topic:source path too long error installing PDT
Next Topic:Zen php debugger
Goto Forum:
  


Current Time: Fri Nov 28 07:20:18 GMT 2014

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

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