User forums > Help
Debugger hangs with Ogre projects
shador:
I have been using Codeblocks on my Ubuntu installation (9.04) and have been coding some stuff with the 3D engine Ogre. Everything worked fine until I tried using the debug feature. For some reason when I debug an Ogre project everything just hangs, I canät use the mouse and no button work either. The only thing I can do is press ctrl+alt+f1 to switch to terminal mode and kill my current session.
I tried debugging a regular terminal applikation and that worked perfectly. I also tried creating several new Ogre projects but they all react the same.
So anyone got a suggestions on what I could do to get the debugger working with my projects? I really miss the debugger =P
MortenMacFly:
Compiler/ debugger version?
shador:
Hmm good question! The compiler is the one from the repositories in the Ubuntu synaptic, version 4.3
The debugger I don't know. How do I check that one? I'm using the debugger that came with Codeblocks 8.02
EDIT: Just saw that the debugger is gnu gdb 6.8-debian!
oBFusCATed:
You get the standard answer: try a nightly :)
You could also try the debugger branch.
Another thing is to enable the debug log for the debugger from settings -> compiler & debugger -> debugger -> Display debugger's log
And paste it here.
manowar:
@shador
Are you using OIS with OGRE ? Are you sure that OIS does not 'grab' the mouse. I have the feeling that your issues are related with input and not Ogre. You can change that easily when you initialise OIS.
I have something like that in my input manager:
--- Code: ---#if defined OIS_WIN32_PLATFORM
paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_FOREGROUND" )));
paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_NONEXCLUSIVE")));
paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_FOREGROUND")));
paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_NONEXCLUSIVE")));
#elif defined OIS_LINUX_PLATFORM
paramList.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false")));
paramList.insert(std::make_pair(std::string("x11_mouse_hide"), std::string("false")));
paramList.insert(std::make_pair(std::string("x11_keyboard_grab"), std::string("false")));
paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true")));
#endif
--- End code ---
especialy look at that line:
--- Code: ---paramList.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false")));
--- End code ---
I hope this is helpful.
Navigation
[0] Message Index
[#] Next page
Go to full version