I have a hierarchy of objects, mostly connected by composition. I.e. (not showing the class methods for readability):
class A {}
class B {A a;}
class C {B b;}
etc...
class Z {Y y;}
class Z provides the API for executing commands from another program - a control panel. I think this is called Chain of Responsibility, but might be at an error.
Now when an action on A needs to be performed, Z calls a method of Y, because Z knows only about Y. So on, until we reach A, which has the proper members and methods to handle the request.
This has the fundamental problem that debugging becomes tedious - one has to step in many times, and each time be careful not to miss the actual working method - otherwise the debugging session needs to be restarted.
How do I make debugging more straightforward? A change in the architecture of a method of using gcc that is more suited to this situation?
usingsolve my problem?