User forums > Using Code::Blocks
debugging a shared library with host application
ote:
Under Settings->Debugger->Common->Perspective it was set to "One perspective per Debugger configuration". Switching to "Only one perspective" makes starting the debugging view when using attach to process.
Thanks for the tip on the envvar plugin, I'll try if I need to start Houdini from Code::Blocks. Right now I just need to attach it to some instance already running.
I'm having some issues now with search -> goto declaration which isn't opening the right header file as I'm working with 2 different versions of the Houdini library. But I'm going to open a new post for that.
Thanks for the help.
oBFusCATed:
--- Quote from: ote on February 28, 2012, 04:50:06 pm ---Under Settings->Debugger->Common->Perspective it was set to "One perspective per Debugger configuration". Switching to "Only one perspective" makes starting the debugging view when using attach to process.
--- End quote ---
Is this reproducible with a simple project?
--- Code: ---int main() { while(true) {} return 0; }
--- End code ---
ote:
Doing the hello world project from an empty project with previous setting (One perspective per Debugger configuration), I've understand that it was actually switching to some debugging view (GDB debugger:default) which has the same layout as the one I use for coding. That's why I thought it wasn't switching, didn't see the difference between the 2. Sorry
oBFusCATed:
OK, so it works and there is not bug to be fixed there...
ote:
Is it normal that my watch list is empty when I start a debug ? I can add variables by typing their name in the first column, and then their value is correctly display. This variables stay in the watch list during different sessions of debugging, but the local variables and function arguments are not added automatically. In settings -> Debugger -> default, watch function arguments, local variable are checked.
Also, I can't paste some text in the first field of the watch list. If I try, the text is paste to the location of the cursor in the editor.
I've tested that behavior in my project and it does the same for a SDL project created from the template list of projects.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version