debugging - GNAT GPS Debugger - Could not initialize the debugger -
i attempting debug project in gnat's gps ide. every time chose debug->initialize->"program name" gui of gps switches of debug gui, , error pops "could not initialize debugger".
the 2 possible solutions have found gdb.exe may out of date , suggests running outside of gps, run fine. other possible solution make sure -g tags applied when building project, necessary gnatlink , gcc debugging. states -g tag applied new project default, unless have removed it. doubt have, not sure check make sure still included.
the other odd thing tutorial comes gps runs through how build , debug code works fine when initialize debugging on it. tutorial referring can accessed through help->gps->gnat programming studio tutorial. references program 'sdc' comes in gnat/2012/share/examples/gps/tutorial directory.
any ideas on doing incorrectly, since error isnt helpful?
thanks!
at first sorta sounds path problem, if you're able run debugger tutorial that's not case.
the behavior you're seeing if program isn't compiled debug (-g) flag doesn't quite match experience, let's go ahead , check/set debug flag anyway.
select project/edit project_properties
click switches tab.
click gnatmake tab.
check "debug information". note -g
shows in text box @ bottom of tab page. click ok on dialog.
recompile code uses changed option. select build/clean/clean all, , ok dialog pops up.
then build (you can press f4).
Comments
Post a Comment