Using DBG in a custom IDE or Windows console? |
Site Admin
|
DBG listener is a proxy between IDE (possibly 3rd party) and debugger module running on the server.
I'd recommend you to try NuSphere PhpED as an IDE. It's where you'll be able to run debug sessions, set breakpoints, see errors etc.
it matters. You have create project and to set run mode to 3rd party web server. Don't forget to install debugger module that comes with IDE. |
||||||||||||||
|
|
I'm sorry if I didn't make myself clear in my original post. I mean to create a custom tool that includes the use of the DBG extension to PHP. Is there a published specification for DBG's message protocol? There are many third-party products that use DBG for their PHP debugging backend. Where did those vendors find information on how to use DBG in their products?
|
||||||||||||
_________________ ~BenDilts( void ); |
Site Admin
|
dbglistener exposes its API through number of COM interfaces and it's what make it that easy to use DBG without learning message protocol which by the way may vary from version to version. All COM interfaces are listed in IDL file that is available with listener, isn't it?
If you don't want it under Windows or don't want to deal with COM, you can use dbg listener classes directly. See sample console that is avilable as dbg-cli. |
||||||||||||
|
|
Thanks again for the speedy reply!
I'm a bit confused about what to do with this .IDL file. Where is the DLL that implements these interfaces? I assumed it was the PHPDbgPS.dll, since it's supposed to be regsvr32'ed, but Visual Studio doesn't see any COM interfaces in that dll. Or am I supposed to implement these interfaces myself? I first created an MFC console application to use the DBG API. I attempted to add an MFC class from an existing TypeLib. As I said, the PHPDbgPS.dll had no exposed interfaces. So I then added the IDL file to my project and compiled (to produce the .tlb). I then attempted to add an MFC class to my project from that .tlb file, but Visual Studio 2003 showed no exposed interfaces in that .tlb file that it produced from the .IDL file. I noticed that Visual Studio also created a few .c and .h files when it process the .idl file. However, these don't seem to give me any way to access the underlying COM objects. I tried then to do it with C#. I tried to add a COM reference to the PHPDbgPS.dll file, but it said that it was not a valid COM DLL. Just for kicks, I tried adding a reference to DbgListener.exe, in case that was hiding the COM objects, but of course that didn't work. I'm missing something really fundamental here. What do I need to do? |
||||||||||||
_________________ ~BenDilts( void ); |
Site Admin
|
DbgListener implements some interfaces. One of them (the site) should be implemented by IDE.
Dll you mentioned is a COM proxy/stub dll and should not implement any interfaces |
||||||||||||
|
Using DBG in a custom IDE or Windows console? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by