Need help getting started with DBG

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Tore
Forum Newbie
Posts: 2
Joined: Sun Feb 23, 2003 2:24 pm

Need help getting started with DBG

Post by Tore »

I'm a Linux and PHP newbie (but experienced developer) looking for a kick in the right direction. I am uncertain about the directions, because they seem to indicate a (re)compile of some sort, and the use of the PHPIZE script (can't find on my server). However, since I downloaded the precompiled modules, I'm not sure if this is required.

My two basic questions are:
1 - Is there anything else I need to do to install DBG?
2 - Assuming the installation is OK as I've done it, how do I go about debugging functions in a php file that is included through a
require_once(mylib.php)

Since I really don't know how to get started, I'll describe my situation:

** Environment:
Coding on Win2k against Linux server (Red Hat 7.3 based, Mitel SME 5.1.2 distribution) with PHP 4.0.6 (will upgrade later).

** Done so far:
1: Downloaded and Installed PHPEdit v.0.7.1.107 on my Win2k PC.
2: Downloaded DBG (precompiled), extracted and copied dbg.so-4.0.6 to the same directory on the Linux server as mysql.so, ldap.so, etc.
3: Edited php.ini to add the extension=dbg.so and the [debug] section according to the INSTALL file.
4: Modified owner, group and permission on the dbg.so to math the other *.so in the same directory.

TIA,
Tore :?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

there are step by step instructions at http://dd.cron.ru/dbg/installation.php
module.Debug.html from the php-help archive explains the client-side steps.
Tore
Forum Newbie
Posts: 2
Joined: Sun Feb 23, 2003 2:24 pm

Post by Tore »

volka, thanks for responding.

The module.Debug.html reference was quite helpful and will probably get me there - the http://dd.cron.ru/dbg/installation.php was not, since it describes the three types of installations that I don't need/can't use at this point:

* Compile for Linux
* Compile for Win32
* Using precompiled version for Win32.

I may not have been clear in my original post, but I do not have the opportunity to compile on Linux (server is stripped of compiler & tools for security reasons), so I need instructions on how to install a precompiled version on Linux. Besides, I don't have the phpize script. At least a "find / -name phpize" came up with nothing.

But after learning more about it, I think the Linux portion should be set up by the steps listed in my original post, and I need to determine whether I have Samba installed on my server, and if not, see about installing it. Then I can finish the client configuration, and test/see if I can get it to work.

Thanks again,
Tore.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if you already have a precompiled module for your server then
Proceed with "Configuring server part" topic
applies to your needs. You have to set up a debugger section (in php.ini)
[debugger]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 7869
Post Reply