NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG + Eclipse


Joined: 14 Dec 2006
Posts: 4
Reply with quote
Hello,

I know this topic could be treated as Eclipse issue, but I'll take my chances.

First, let me introduce my configuration:
    - Eclipse SDK Version: 3.1.2
    - PHPEclipse plugin v1.1.8
    - XAMPP voor Windows Version 1.5.3a
    - PHP Version 4.4.2-pl1
    - Apache 2.2.2
    - php_dbg.dll-4.4.2


Of course, I have a problem. It happens that while stepping through the code, Eclipse just hangs.
This happens on some specific statements in my code (some function calls). I know that I'm using right
source path because few hundred lines of code work perfectly.

I also found some additional symptoms.
While hanging, process javaw.exe consumes ~95% of my processor (AMD Athlon 64 3200+) until debugged thread is stopped.
Also, if in that state, it takes ~10 secs for Apache to shut down.

Is there a way to localize the problem to some component - DBG, Eclipse, Apache, PHP? Or a version incompatibility?
Is there a DBG log file somewhere?
Could you help me? Shocked

Oz
View user's profileFind all posts by ozSend private message


Joined: 14 Dec 2006
Posts: 4
Reply with quote
Hello again,

And let me answer my own question. Silly me. Shocked
Just after I gave up messing around Eclipse settings and trying to clear some non existing internal cache Rolling Eyes I tried to use some of my own old piece of code used for logging. So i found this stuff...

Code:
for($i=0; $i[b]=[/b]count($this->timestamps); $i++) {
   ...
}


This was an overkill for the server thread. Still I don't know why debugger didn't step inside the function, but... it works now.
Embarassed

Btw, this php DBG is really a great piece of work!!!
(not pulling your leg - really, it helped me a lot)

Oz
View user's profileFind all posts by ozSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Sorry, we are not maintainers for Eclipse.
Even though it claims to have DBG debugger, it uses only DBG server module, while client is written in java and derived from dbg 2.11 sources AFAIK.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Dec 2006
Posts: 4
Reply with quote
dmitri wrote:
Even though it claims to have DBG debugger, it uses only DBG server module, while client is written in java and derived from dbg 2.11 sources AFAIK.


That's truth, Eclipse embeds client module in the distribution - and I wasn't aware that the source version was 2.11; incompatibility between server module and client could explain some of the problems I encountered.
But Eclipse (although a great tool) doesn't come with HTTP server. Developer has to install one.
So, I took your free distribution of dbg server module (PHP extension) and used it with out-of-the-box apache based solution, XAMPP.

And I thought the problem was in your DBG server module Rolling Eyes .
Again I have to tell you that your DBG module helped me a lot!

Oz
View user's profileFind all posts by ozSend private message
DBG + Eclipse
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic