Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to find out debug_session_id?
How to find out debug_session_id? [message #46358] Sat, 25 August 2007 07:11 Go to next message
Eclipse UserFriend
Originally posted by: cryogenesis.gmail.com

Hi

I'm currently trying to migrate from Zend Studio to PDT and I use Zend's
Firefox plugin to debug from within the browser (I'm using Zend Debugger
btw). Unfortunately, though, PDT seems to require a parameter that Zend
Studio didn't -- debug_session_id .

I can find out the current id if I "debug as PHP Webpage" in Eclipse,
and then check the get parameters. I set the debug_session_id value to a
modified version of the plugin I made (so it will be sent by a cookie)
and debug will then work from within Firefox.

There are two problem with this approach:
1- PDT won't accept any debug_session_id unless I use 'debug as php web
page' once after every Eclipse launch.
2- I see no way to automatize the discovery/generation of this id.

So I was wondering if there is a way to query PDT and find out this
parameter.

Thanks,

Rafael

PS: is there a way to turn off browser output in the debug/php
perspectives? I find it annoying mainly because it uses IE, which gives
JS errors on my page (i'm aiming for firefox only in this iteration).
Re: How to find out debug_session_id? [message #46448 is a reply to message #46358] Sun, 26 August 2007 11:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: reply-to-newsgroup.news.com

The Zend Toolbar works only with Zend products (e.g. Zend Studio).
It will not work with the PDT.
Shalom Gibly
Zend

"Phenøm" <cryogenesis@gmail.com> wrote in message
news:faokiq$86b$1@build.eclipse.org...
> Hi
>
> I'm currently trying to migrate from Zend Studio to PDT and I use Zend's
> Firefox plugin to debug from within the browser (I'm using Zend Debugger
> btw). Unfortunately, though, PDT seems to require a parameter that Zend
> Studio didn't -- debug_session_id .
>
> I can find out the current id if I "debug as PHP Webpage" in Eclipse, and
> then check the get parameters. I set the debug_session_id value to a
> modified version of the plugin I made (so it will be sent by a cookie) and
> debug will then work from within Firefox.
>
> There are two problem with this approach:
> 1- PDT won't accept any debug_session_id unless I use 'debug as php web
> page' once after every Eclipse launch.
> 2- I see no way to automatize the discovery/generation of this id.
>
> So I was wondering if there is a way to query PDT and find out this
> parameter.
>
> Thanks,
>
> Rafael
>
> PS: is there a way to turn off browser output in the debug/php
> perspectives? I find it annoying mainly because it uses IE, which gives JS
> errors on my page (i'm aiming for firefox only in this iteration).
Re: How to find out debug_session_id? [message #46557 is a reply to message #46448] Sun, 26 August 2007 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cryogenesis.gmail.com

I got it to work with PDT, the only thing missing is a way to get said
parameter automatically.

So I guess there is no way of getting debug_session_id from an external
application (or no way to omit it altogether)?

Thanks,
Rafael


On 26/8/2007 08:29, Shalom Gibly wrote:
> The Zend Toolbar works only with Zend products (e.g. Zend Studio).
> It will not work with the PDT.
> Shalom Gibly
> Zend
Re: How to find out debug_session_id? [message #46583 is a reply to message #46557] Mon, 27 August 2007 08:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: morgg.mail.com

The Zend debugger server component is the same for PDT and Zend Studio,
and they both rely on cookies for remote server debugging for all pages
in a domain. The debugger server sends a "Set cookie" header the first
time you request a page with the GET parameters to open a debug session
(if you have "Debug all pages" set in the Debug configuration you run in
Eclipse). After this, all the pages in the domain continue the debug
session based on this cookie.

I had a similar problem with a "no session id" in Eclipse. The problem
for me was in debuggin all pages of a session. I could debug just the
first page.

I eventually found the problem to be with cookies. I had the Suhosin
patch in my local Apache server, which was encrypting the cookies where
ZendDebugger stores its parameters and they couldn't be reported back
correctly to Eclipse.

I uninstalled Suhosin and everything is working now. Of course, no need
to use Zend's Firefox extension, and you don't have to worry about
session id's, you just select the debug configuration you have
configured in eclipse, and it will automatically start your preferred
external browser. Then you browse normally, and everytime you hit a
breakpoint, Eclipse will stop the server.

I hope you can get it to work, I was frustrated when I couldn't debug.

Regards,
Marcos.

Phenøm wrote:
> I got it to work with PDT, the only thing missing is a way to get said
> parameter automatically.
>
> So I guess there is no way of getting debug_session_id from an external
> application (or no way to omit it altogether)?
>
> Thanks,
> Rafael
>
>
> On 26/8/2007 08:29, Shalom Gibly wrote:
>> The Zend Toolbar works only with Zend products (e.g. Zend Studio).
>> It will not work with the PDT.
>> Shalom Gibly
>> Zend
>
Re: How to find out debug_session_id? [message #46718 is a reply to message #46583] Mon, 27 August 2007 23:06 Go to previous message
Eclipse UserFriend
Originally posted by: cryogenesis.gmail.com

On 27/8/2007 05:00, Marcos Orallo wrote:
>
> I uninstalled Suhosin and everything is working now. Of course, no need
> to use Zend's Firefox extension, and you don't have to worry about
> session id's, you just select the debug configuration you have
> configured in eclipse, and it will automatically start your preferred
> external browser. Then you browse normally, and everytime you hit a
> breakpoint, Eclipse will stop the server.
No Suhosin here, so I guess I'll just need to adapt and don't rely so
much on this extension.

Thanks for your reply.

Rafael
Previous Topic:Custom ide-tooltip-popup for functions
Next Topic:XDebug remote support
Goto Forum:
  


Current Time: Fri Apr 26 03:08:27 GMT 2024

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

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

Back to the top