NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
custom debugger client


Joined: 13 Sep 2004
Posts: 5
Reply with quote
Hi,

I am experimenting with writing my own dbg client. I am running win xp with php 4.3.2. I've installed dbg along with PHPEclipse. I am able to run the debugger in the PHPEcllipse environment so I know it's setup properly.

I made a very very simple test Java program where I open a ServerSocket on port 7869 and wait for connections and dump any contents that come over the wire. I run this program test client then run a simple php page from command line, i.e. php.exe foo.php. The problem is I never get a debugger connection on the Java client. I have a feeling I simplified this to much?

Here are my php.ini settings

debugger.enabled = On
debugger.profiler_enabled = On
debugger.hosts_deny = ALL
debugger.hosts_allow = localhost, 127.0.0.1, 9.33.68.255
debugger.ports = 7869, 10000/16
debugger.JIT_host = clienthost
debugger.JIT_port = 7869
debugger.JIT_enabled = On
debugger.fail_silently = Off

Any Ideas,
Brian
View user's profileFind all posts by bpburnsSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Sorry, what's the question ? You want me to teach you how to write your own Java client or what ?
Certainly debugger does not connect to the client until either it is explicitly requested or JIT condition happened.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Sep 2004
Posts: 5
Reply with quote
Let me try and clarify. I don't want you to teach me how to write my own Java client. My question has to do with specifically how and when the debugger makes a connection to a client. How does one explicitly request the debugger? I would assume a JIT condition would occur upon an error? Am I correct in assuming that the debugger would never connect to a client if an error has not occured?
View user's profileFind all posts by bpburnsSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Debugger is supposed to connect to the client if either of the following conditions met
-debug session is requested (see FAQ http://forum.nusphere.com/howto-run-debug-session-t585.html on how to do it)
-a regular error (E_WARNING as well as other E_xxx) occured _and_ it is sufficiently high to pass by JIT error level and JIT is enabled.
I would recommend you to rely on the first condition as the main way.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Sep 2004
Posts: 5
Reply with quote
That's exactly what I was looking for. Thankyou!!
View user's profileFind all posts by bpburnsSend private message
custom debugger client
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