Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Debugging CB with CB
JMP:
Hi, I am new in this forums and, although I have read the messages thoroughly, maybe I have mised this topic.
My cuestion is simple: How can be debugged CB using CB?
Thank you
Pecan:
Compile CB using a previous nightly or previous SVN version of CB. This creates the .../trunk/src/devel directory.
Run update.bat (MSwindows) or ./update (Linux) to create the .../trunk/src/output directory.
Start CB from the .../trunk/src/output directory. Load the CB project file and hit the debug run button or F8.
Be patient, it sometimes takes awhile for GDB to read all those symbols and start the debugging process.
JMP:
Thank you Pecan,
I have done as you say and now I can run/debug one instance of CB (the debugged instance)from within another one (the debugger instance). In the debugged instance, I load a test project. I can debug this project (set breakpoints) from the debugged instance of CB but I cannot debug this instance of CB (I cannot set breakpoints) from the debugger one. Looks quite quirky. Sorry!
thomas:
Er... debugging another instance from an instance that is being debugged doesn't make much sense if I'm allowed to say :)
I am not even sure if this is technically possible at all. In any case, it is probably not possible with every debugger, because at least some debuggers use hardware breakpoints and performance counters and such (gdb to my knowledge does not).
JMP:
Mmmm, really what I want is to debug one instance of CB with another instance of CB. Maybe a different version would do.
I need to run the debugged instance using some test project to edit. Then I track the execution process of this instance of CB (not the test project) from the debugger instance.
My problem is that I cannot set breakpoints in the debugger instance (that is debugging/running the debugged instance) but I can do it in the debugged instance (that is debugging/running the test project).
Is that the right approach?. How do you debug your changes to CB?.
Navigation
[0] Message Index
[#] Next page
Go to full version