NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
getting started with dbg-cli


Joined: 18 Aug 2005
Posts: 6
Reply with quote
Hi,

I'm trying to use the dbg-cli on RH 9, and I believe the DBG extension for PHP 4.2.2 has been correctly installed (it appears ok with php -i) but I'm having trouble getting started.
Here is what I see:

DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
dbg>set mode off
dbg>file /tmp/h.php
Reading symbols from /tmp/h.php...done.
dbg>run
Starting program: `/tmp/h.php'
Unexpected character in input: '
/usr/bin/php:359 </usr/bin/php::main()>

Thanks in advance for any pointers.
View user's profileFind all posts by asterixSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
could you please show the sources of h.php?
Looks like you're including "/usr/bin/php" there...
View user's profileFind all posts by dmitriSend private messageVisit poster's website
content of /tmp/h.php


Joined: 18 Aug 2005
Posts: 6
Reply with quote
<?php echo "Hello world."; ?>
Done.
View user's profileFind all posts by asterixSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
did you try to run this file with php without dbg-cli?
just run
cd /tmp
/usr/bin/php ./hello.php
If it runs correctly, dbg-cli should work with it too.
If it does not run, you have to check your php installation, settings etc.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Aug 2005
Posts: 6
Reply with quote
Our php installation has been tested on much more complex scripts, and yes, this
particular example runs fine using php from the command line.
View user's profileFind all posts by asterixSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
ok. Please re-configure dbg-cli with debug logs enabled and submit the logs there.
TIA.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
log output


Joined: 18 Aug 2005
Posts: 6
Reply with quote
The next message will contain the debug log. Just to be sure, here
is how I got the debug log: I downloaded the source, issued the
command

configure --prefix=$cwd --with-dbg-trace

and then make and make-install. Then I ran dbg-cli, and copied
what I saw to the next message. I hope this was right!
View user's profileFind all posts by asterixSend private message
debug log


Joined: 18 Aug 2005
Posts: 6
Reply with quote
% bin/dbg-cli
ListenerBase::ListenerBase
DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
[DBG] parse_args(argc=1, argv=(null))
dbg>file /tmp/h.php
Reading symbols from /tmp/h.php...done.
dbg>run
ListenerBase::startsession
ThreadBase::ThreadBase
dbh_create_listen_socket(, 10001)
socket=3
open_dbg_session
open_cgi_session
olddir=.../dbg/dbg-cli/dbg_client-2.11.32
path=/usr/bin
open_cgi_session -> pid=18933 OK
select returned=1
accept returned=4
ThreadBase::assign_connection(4, 67, 0x80830b8)
new client is added
ThreadBase::process_cmd(1)
ThreadBase::onstartsession
Starting program: `/tmp/h.php'
ThreadBase::onbreakpoint(4103)
ThreadBase::process_cmd(17)
ThreadBase::process_cmd(16)
Unexpected character in input: '
ThreadBase::requestdocfilename
ThreadBase::getdoclist
[DBG] filemapper::mapfilename(2, /usr/bin/php)
[DBG] mapper:fromroot:leaving(non http mode)
/usr/bin/php:359 </usr/bin/php::main()>
ThreadBase::requestdocfilename
ThreadBase::getdoclist
ThreadBase::requestdocsrc
dbg>quit
ListenerBase::~ListenerBase
ListenerBase::stop
ListenerBase::stopJIT
stopping clients
ThreadBase::close()
closing socket 4

Program exited.
ThreadBase::close()
ThreadBase::close()
View user's profileFind all posts by asterixSend private message
hints?


Joined: 18 Aug 2005
Posts: 6
Reply with quote
Does the preceding information lead to any hints on
what to do?
View user's profileFind all posts by asterixSend private message
getting started with dbg-cli
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