NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
show variable contents? the code on the current line etc?


Joined: 15 Jul 2005
Posts: 1
Reply with quote
I have looked for a very long time for information regarding the use of the dbg-cli. I have searched the forums, the website and google but have been unsuccessful.

I have been able to get the cli to listen and to have the debug session start when browsing to a php page, but how do I get any additional information other than the line I'm currently on from the cli?

For instance, the actual code on the current line or the variables currently set or the contents of variables etc etc?

Thank you in advance.
View user's profileFind all posts by bindSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
In some certain extents dbg-cli implements well-known gdb command set.
You may run help command to see the list of supported commands, help with command name will show description for each one.
Commands are gdb-alike and response given by dbg too.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
For example:

Code:
[dd@hh tst]$ ./dbg-cli --cgi=./php ./info.php
DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
Reading symbols from ./info.php...done.
dbg>run
Starting program: `./info.php'
/home/dd/php/tst/info.php:2 </home/dd/php/tst/info.php::main()>
dbg>step
/home/dd/php/tst/info.php:3 </home/dd/php/tst/info.php::main()>
dbg>step
/home/dd/php/tst/info.php:4 </home/dd/php/tst/info.php::main()>
dbg>step

Program exited.


File info.php is very simple:
Code:
<?php
  echo "hello";
  phpinfo();
?>
View user's profileFind all posts by dmitriSend private messageVisit poster's website
show variable contents? the code on the current line etc?
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