User forums > Using Code::Blocks

see content of a vector in debugging

<< < (6/26) > >>

taram:

--- Quote ---guys, keep up the good work, I see an interesting patch being created.
This would really enhance the debugging experience in CB !!!
--- End quote ---


--- Quote ---Here is the patch: http://forums.codeblocks.org/index.php/topic,10676.0.html

p.s. Sorry that I'm posting the same thing to multiple threads...
--- End quote ---

Since I am a newbe to CB I am a little bit confused about the "debugger_script" thing and the "patch".

Do we have to install the patch manually or will it be implemented in one of the next nightly builds?

Or do I have to do this:


--- Quote from: ollydbg on June 09, 2009, 12:53:15 pm ---
There are several steps:

1. copy the "stl-views-1.0.3.gdb" file  to the project directory.( This directory serves as working directory as GDB.exe starts)

2. In the Menu->setting->compiler and debuggers dialog.

Add "source stl-views-1.0.3.gdb" to the debugger initialization command control.

3. start debugging!

4.In the Menu->debug->set user command to the debug dialog.
Enter " pvector v"

5, the v will be shown :D


--- End quote ---

Sorry for this stupid question, but I am still learning.

Thanks

Taram

ollydbg:

--- Quote from: taram on June 10, 2009, 07:18:30 am ---
--- Quote ---guys, keep up the good work, I see an interesting patch being created.
This would really enhance the debugging experience in CB !!!
--- End quote ---


--- Quote ---Here is the patch: http://forums.codeblocks.org/index.php/topic,10676.0.html

p.s. Sorry that I'm posting the same thing to multiple threads...
--- End quote ---

Since I am a newbe to CB I am a little bit confused about the script thing and the patch.

Do we have to install the patch manually or will it be implemented in one of the next nightly builds?

Sorry for this stupid question, but I am still learning.

Thanks

Taram

--- End quote ---
Well, you need to build the whole CB yourself. See

 http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

For other platforms, you can find similar wiki pages there. :D

For me, I just download the patch, then applied the path to my local source code of CB, then rebuild the CB.

It's not difficult.

taram:
Thx for your quick answer ollydbg. I do not use windows.

I am using Debian/Linux and Jens' unofficial debian-repository for Code::Blocks
http://apt.jenslody.de/

So will issue be implemented in a future SVN?  

I have Code::Blocks SVN 5616 right now.

This can then be updated easily by

#apt-get update
#apt-get upgrade

since I am using Jens' debian-repository for Code::Blocks.

Thanks

Taram

ollydbg:
Any developer has the rights to add patch in the trunk(SVN repository).

So, if some dev was interested in this patch, and surely it will be add to trunk. :D

killerbot:
hehe, and the patch I was talking about and hoping to see, is that CB can/will display vectors without having the user to explicitly send a debug command to gdb, and preferably those scripts being active on the global level, and per project ;-)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version