NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
compiling dbg with debug


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

I have a debug version of php4 installed. In order for the dbg module to load, I need to compile the dbg module with debug turned on. I don't see any debug options in the configure script for dbg? I tried to modify the Makefile and use gcc's -ggdb option, but that did not seem to work. PHP still seems to think the module was compiled without debug.

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

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Why would you need php compiled with debug? Are you going to debug php engine itself (e.g trace functions written in C) ? In this case why why would you need php debugger?
If you're sure you need it, there is no problem. Just recompile debugger with debugger-enabled php and it will work. If it does not, check php_config.h created by configure which subsequently is created by phpize script.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Sep 2004
Posts: 5
Reply with quote
I know it seems strange. I'm using a module in my project that was compiled with debug. The only way I was able to get that module to load was to compile php with debug. I'll get a non debug build of that module at some point, but right now I don't have time to wait.

I had to go into php_dbg.h and #define ZEND_DEBUG 1 . With that dbg was able to load.

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

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
It's what would be defined in php_config.h
View user's profileFind all posts by dmitriSend private messageVisit poster's website
compiling dbg with debug
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