InterviewSolution
| 1. |
Is It Possible To Debug Business Object? Is It Also Possible To Get A Trace Of The Business Object Event Triggers And Method Calls? |
|
Answer» In TR. SWO1, instantiate the business object. From there you can easily debug methods. To debug a BOR method you just need to put a breakpoint in your method and test the same. You can also debug attributes by placing the breakpoint and then initiating the object. If what you mean by DEBUGGING a method for a trigger event – is the method in a task that is triggered by an event, then you will have to debug all the way through the workflow engine from the point where you raised the event (SWUE) until the task calls the method. A breakpoint in ONE of the BINDING FMS would be useful here. In TR. SWO1, instantiate the business object. From there you can easily debug methods. To debug a BOR method you just need to put a breakpoint in your method and test the same. You can also debug attributes by placing the breakpoint and then initiating the object. If what you mean by debugging a method for a trigger event – is the method in a task that is triggered by an event, then you will have to debug all the way through the workflow engine from the point where you raised the event (SWUE) until the task calls the method. A breakpoint in one of the binding FMs would be useful here. |
|