getting started with dbg-cli |
|
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. |
||||||||||||
|
Site Admin
|
could you please show the sources of h.php?
Looks like you're including "/usr/bin/php" there... |
||||||||||||
|
content of /tmp/h.php |
|
<?php echo "Hello world."; ?>
Done. |
||||||||||||
|
|
Our php installation has been tested on much more complex scripts, and yes, this
particular example runs fine using php from the command line. |
||||||||||||
|
Site Admin
|
ok. Please re-configure dbg-cli with debug logs enabled and submit the logs there.
TIA. |
||||||||||||
|
log output |
|
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! |
||||||||||||
|
debug log |
|
% 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() |
||||||||||||
|
hints? |
|
Does the preceding information lead to any hints on
what to do? |
||||||||||||
|
getting started with dbg-cli |
|
||
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