NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
No symbol table is loaded.


Joined: 17 Mar 2008
Posts: 1
Reply with quote
Hi... Thank you for making such a great tool. It really is pretty amazing!

I have a problem I'm trying to solve. I have DBG correctly installed on my web server and it appears in my phpinfo.

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with DBG v2.15.5, (C) 2000,2007, by Dmitri Dmitrienko

I am trying to debug a CLI (command line interface) script using dbg-cli. I have correctly compiled it and set the ports and paths correctly. If you need it, here are my settings:

set port 7869
set mode on
set maplocalroot /www/stock/public_html/
set mapremoteroot /www/stock/public_html/
set mapurlroot http://mywebserver/

The problem is that when I load a script from the command line or using the 'file' command, the program runs to completions when I type: run, but there is no symbol table so I can't set breakpoints or watches and step through the program. Am I missing something? Why is the symbol table not being loaded? Are they being stripped out somewhere?

Here is a run output:
DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, http://www.nusphere.com
dbg>file phptest.php
Reading symbols from phptest.php...done.
dbg>list
No symbol table is loaded. Use the "file" command.
dbg>step
The program is not being run.
dbg>run

Program exited.
dbg>show cgiexec
php.
dbg>q

Basically, I just want to know how to get the symbol table loaded too.

Thanks!
View user's profileFind all posts by DavidNYC69Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
The responses regarding "symbol table" are adequate only for DDD debugger front end (just to get it to work with dbg). Forget about symbol tables. There are none. What you need it "break" command to set breakpoint and run to get your script executed. FYI, when you "set mode on", you're turning on HTTP mode. If you need to execute a script with php, you have to "set mode off". Also you need to specify path to php with command like this: "set cgiexec /usr/local/bin/php-cgi". Values such as mapurlroot and the other map* ones are not needed in non-http mode.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
No symbol table is loaded.
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