Does the Debugger work on Libraries for anyone?
Posted: Tue Oct 02, 2012 2:48 pm
Historically and currently I have many many problems trying to use the debugger. I wonder if my problems are related to the fact that most of my code is in libraries. When I created a Debug configuration of the libraries, it didn't set the _DEBUG symbol or set the Optimization to -O0. I did this manually and did a clean rebuild on all my libraries. Using breakpoints is extremely flaky. I have to set all breakpoints I will ever want in a debug session before I start. Otherwise when I set them I get a warning icon with the message "Unresolved breakpoint". It's not related to the line I set it on. If a session is running and I set some breakpoints and get the warnings, usually I can quit, start a new session and the breakpoints enable and will be hit. If they are enabled and I remove them, they can't be set again. If I set breakpoints too close to the InitializeNetworkGDB_and_Wait(); statement they will look good (no warning icons) but they will NEVER get hit.
Also I can't seem to properly terminate a debugging session, I've tried terminate followed by disconnect and the opposite but it has never worked. Luckily most of the time when I go to run the debug configuration again I get a dialog offering to kill the current session and it often works. If it doesn't I have to exit Eclipse and restart to debug again. Is there a secret set of steps to properly exit the debugger?
Does anyone run the debugger on libraries out there? Are there any special settings I need to make that will make debugger usable?
BTW, I tried deleting the Debug Configurations for all the libraries, created a new one selected the "Default configuration" radio button and selected Debug from the popup. I thought this might fix the build but it didn't help.
Also I can't seem to properly terminate a debugging session, I've tried terminate followed by disconnect and the opposite but it has never worked. Luckily most of the time when I go to run the debug configuration again I get a dialog offering to kill the current session and it often works. If it doesn't I have to exit Eclipse and restart to debug again. Is there a secret set of steps to properly exit the debugger?
Does anyone run the debugger on libraries out there? Are there any special settings I need to make that will make debugger usable?
BTW, I tried deleting the Debug Configurations for all the libraries, created a new one selected the "Default configuration" radio button and selected Debug from the popup. I thought this might fix the build but it didn't help.