[wingide-users] semi automatic gdb launch from wing for C++ extensions debugging
Aleh Arol
aleh.arol at gmail.com
Mon Apr 30 02:37:39 MDT 2012
Hi,
I'd like to automate to some extend the task of C++ extensions debug
(I'm using python ogre and indeed the whole program is c++ extension).
I googled a way to get debug process pid from wing, but now I have 2
issues:
1) if I try to use OS Commands and command line contains gdb it
complains(see below) that my python is not build with pydebug(which is
correct, this is the one with only -g)
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 562, in <module>
main()
File "/usr/lib/python2.7/site.py", line 544, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 236, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 543, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 442, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 303, in _init_posix
makefile = _get_makefile_filename()
File "/usr/lib/python2.7/sysconfig.py", line 297, in
_get_makefile_filename
return
os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1),
"config" + (sys.pydebug and "_d" or ""), "Makefile")
AttributeError: 'module' object has no attribute 'pydebug'
2) Well, if I imagine issue 1) gone is there any way to tie result of
wing script to command line arg in OS Command?
I suspect that I'm going the wrong way and that I don't need an OS
Comands tool for that, just a script...
Any suggestions?
Thanks in advance.
--
Best regards,
Aleh Arol
More information about the wingide-users
mailing list