User forums > Using Code::Blocks
Showing vector elements in debugger
nji:
Yes, I do agree! :)
So I took my clean c:b 16.01 (with mingw 4.9.2) and retraced your steps.
First try I left the two original files __init__.py (empty) and printers.py.
As I don't have any stl.gdb file anywhere, I inserted the init code as
"Debugger initialization commands"
--- Code: ---python
import sys
sys.path.insert(0, 'C:\Program Files (x86)\CodeBlocks\MinGW\share\gcc-4.9.2\python/libstdcxx/v6')
from printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
--- End code ---
Also "Enable watch script" disabled.
When I try to debug your code it doesn't work:
Message (translated from German by me):
--- Code: ---"gdb.exe - systemerror.
The program cannot be startet, as python27.dll is missing on your computer."
--- End code ---
And indeed, I searched for the file: it is nowhere.
Looks like you have done some extra steps ... ?
(I checked: When I change back to original gdb debugger works fine again.
Without pretty printing of course)
BlueHazzard:
from ollydbg in http://forums.codeblocks.org/index.php/topic,11301.0.html
--- Quote ---You must install Python 2.7.5 release 32bit version on your system, as my build was linked to this python release.
--- End quote ---
so you need to install python 2.7.5
I probably had installed it previously...
nji:
In the link you provided in http://forums.codeblocks.org/index.php/topic,21998.msg149716.html#msg149716
it was not necessary to install python?
As the the missing file is included in there...
But ... as it seems ... that way didn't work ... at least at me.
What I mean: If one installs c:b ... is it necessary to install python before, if gdb is python-enabled?
(To my experience it's best to install as few as possible)
Questions over questions ... :-\
BlueHazzard:
--- Quote ---What I mean: If one installs c:b ... is it necessary to install python before, if gdb is python-enabled?
--- End quote ---
codeblocks does not need python... gdb needs python. This are two separate projects. Codeblocks can not provide support for all things... And if codeblocks has to ship dlls for all possibly needed additional programs, the purpose of dlls is circumvented...
I had python installed previously for using it to program in python, so i don't had to install it. A bit of self thinking and googling solves this kind of problems in 2 sek.
i updated my previous post.
nji:
You're so right ... and a bit of self thinking and read what I wrote would keep you from being impolite.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version