Debugging using emacs

GNU Emacs 23.2.1 GCC 4.4.4

I am using gdb-many-windows to debug.

I am just wondering is there anything better?

At the moment I am debugging a linked-list. The list is not that big. However, it would be nice to see all the elements' values. Instead of having to 'print sorted_queue->next->seconds' all the time.

The watch command works ok, if a value changes. However, sometimes its nice to see all the values you want to watch in a separate buffer for easy review.

Everytime I what to see what a value is I have to issue the command print (p) and the name of the variable. Just a lot of typing. One thing Visual Studio is good for is debugging. It would be nice to see Emacs with some of those features.

Many thanks for any advice,

Answers


You might like the Data Display Debugger, a.k.a. DDD:


As far as dumping of the data structures is concerned, GDB Python extensions might interest you. Then you could make 'print list' output '5 10 2 4 50' or whatever presentation you like.

You can read introduction to GDB Python scripting here.


Need Your Help

Telegram messenger client won't work when I add realm library

android android-studio gradle realm telegram

I am working on a custom version of the Telegram messenger at the repository: https://github.com/DrKLO/Telegram . I want to use MPAndroidChart and realm in it but when I add the realm by online

Batch file not executing the required commands in windows 8.1

java batch-file jsoup

I have created a batch file to set the path of a jar file whenever i need to use that jar file.But even after executing the file,the system is unable to recognize the jar file and when i compile my...