NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
dbg-cli questions (dbg-2.13)


Joined: 18 Jun 2006
Posts: 3
Reply with quote
Hi,

I've installed the module and dbg-cli on one of our Linux servers and it works great. I run the dbg-cli locally in listening mode and view the code in a browser. Thanks so much for this, Dmitri!

My problem is that I can't seem to find any documentation on the dbg-cli command line interface. I've used the help facility, but it doesn't describe some of the subcommands.

A few questions that I'd like to find out about:
1. How can I do a watch/eval?
2. Is it possible to set up aliases (like 'n' for next) or macros?
3. I also find that I have to enter the entire path for setting breaks like:

>break /var/www/html/ernie/index.php:44

instead of just

>break index.php:44

4. What are the info subcommands?

If someone could point me toward the docs, I'd appreciate it. Again, I really appreciate this free contribution!

Maury
View user's profileFind all posts by burdinusSend private message
dbg-cli questions - Reply?


Joined: 18 Jun 2006
Posts: 3
Reply with quote
Dmitri or others,

I would greatly appreciate a reply to the following to this request that I posted a week ago - thanks!
View user's profileFind all posts by burdinusSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
thanks for your patience.

Quote:
1. How can I do a watch/eval?

see "display" command
Quote:
2. Is it possible to set up aliases (like 'n' for next) or macros?

no. But you can add your commands to command.cpp. See CommandList static instances like info_cmdlist.
Quote:
I also find that I have to enter the entire path for setting breaks like

Right.
Quote:
What are the info subcommands?

help info would show them Smile
info files
info sources
info program
info breakpoints

they were added to make dbg-cli DDD-compatible, without them dbg would not work under ddd debugger.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
dbg-cli questions


Joined: 18 Jun 2006
Posts: 3
Reply with quote
Thanks for the reply, Dmitri - I appreciate it. This contribution has really helped me a lot!

Thanks for the information - I'll look at command.cpp - help info displays the following:

--
dbg>help info
Generic command for showing things about the program being debugged.
dbg>
--

Regards,

Maurice
View user's profileFind all posts by burdinusSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
then it's a problem as it should display all the sub-commands. I'll fix it in the next version (hopefully)
View user's profileFind all posts by dmitriSend private messageVisit poster's website
dbg-cli questions (dbg-2.13)
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