NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DbgListener COM interface - IPhpDbgSite ?


Joined: 15 Sep 2004
Posts: 8
Reply with quote
Hi,

I've been trying to write a COM client for phpdbg using the IDL file supplied with the windows dbglistener zip, but I'm wondering what interfaces I need to implement. I've tried IPhpDbgSite and IDbgListener2 but I still get 'No such interface supported' in the DbgListener log. I've been stepping through the debugger a bit and I noticed that there was a QueryInterface for IPhpDbgSite; that returned S_OK so my implementation works ok. I didn't find any other QueryInterface calls for other IID's so I guess this is the only one that I need to implement; but why doesn't it work then? Thanks.

cheers,

roel
View user's profileFind all posts by roel_vSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
You'd implement a CoClass that exposes IPhpDbgSite & IPhpDbgSite2 interfaces
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 15 Sep 2004
Posts: 8
Reply with quote
Hmm ok well I did that but I still get the 'Interface not implemented' message, although i can see in the debugger that the QueryInterface returns S_OK. What is IDbgListener2 used for? An IDbgListener2 gets a IPhpDbgSite2 as an argument, but never the other way around. Thanks.
View user's profileFind all posts by roel_vSend private message


Joined: 15 Sep 2004
Posts: 8
Reply with quote
it keeps getting weirder. I installed PHP code, setup everything, selected 'php coder' in the dbglistener setup, and I get the exact same error message when I request a page with the url

http://localhost:8080/dbgtest.php?DBGSESSID=1@clienthost:7869;d=1,p=0

My phpdbg setup is correct, I'm pretty sure of that, the module show up right in phpinfo(), I can telnet to the port and all, but I keep on getting the 'No such interface supported' message! It's driving me nuts. Could it be because I'm running XP SP2? Thanks for any hints.
View user's profileFind all posts by roel_vSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
the URL is not correct.
DBG 2.11 supports DBGSESSID in the following form:
id@host:port
for example
DBGSESSID=1@192.168.0.10:7869
where 192.168.0.10 is IP address of the machine where you run dbglistener.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 15 Sep 2004
Posts: 8
Reply with quote
But if the URL isn't correct, wouldn't the server-side component fail to make a connection to the dbglistener.exe program? Because that parts works fine. I've tried your suggestion and used an ip adres and not the 'clienthost' keyword, but that didn't make a difference, I still get the 'No such interface supported' error message. (I've also removed the d=1,p=0 part, and tried different combinations, and tried 127.0.0.1 and the real ip adress). I've also tried older versions of the dbg client client and they all work (in that they open a port on 7869, accept connections, log messages) but they all log that dreaded 'interface not supported' message. Is there anyone out there who can get the latest version of phpdbg to work with the latest version of phpcoder? I can see the phpcoder window show up for a very show while but then it disappears again when dbglistener.exe cannot find the interface. Isn't there a debug version of the the dbglistener.exe component that logs when it tries a queryinterface to a file or that displays in the log screen *which* interface isn't supported? Thanks.
View user's profileFind all posts by roel_vSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Check if Proxy/Stub dll is registered.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 15 Sep 2004
Posts: 8
Reply with quote
Yes, this was the problem! Thank you! Stupid me, I've wasted 2 evenings thinking that my code wasn't correct... Aargh! Anyway, thanks again!
View user's profileFind all posts by roel_vSend private message
DbgListener COM interface - IPhpDbgSite ?
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