Debugging
How to debug the field symbol?
via a breakpointHow to catch an exception?
I create a new exception dynamically. Since I don’t know the exact name of exception, I can only create a breakpoint based on CX_ROOT, which is super class of all class based exceptions.then all that I can do is just F8, F8 and F8… Soon ( ten seconds later) I found one exception raised in a suspicious method GET_TABLE_CONTENT.Then I click “Display Trigger Location”, the debuger displays the method GET_P_ASSOC_OBJ_DEF_ATTRIB which leads to the exception CX_SY_NO_HANDLER.Wait.. isn’t this trouble-maker method developed by myself?
After going through BSP framework code I learnt that BSP framework will first try to determine the cell type by calling our property getter method ( PREFIX GET_P_XXX). Only the successful determination of field type can trigger the successive call of content getter method ( PREFIX GET_XXXX) to retrieve the cell content.
By the way, if the method which trigger the exception is not owned by you, you need to know which class that method belongs to.
You can achieve it by using SE80->Repository Information System
After going through BSP framework code I learnt that BSP framework will first try to determine the cell type by calling our property getter method ( PREFIX GET_P_XXX). Only the successful determination of field type can trigger the successive call of content getter method ( PREFIX GET_XXXX) to retrieve the cell content.
By the way, if the method which trigger the exception is not owned by you, you need to know which class that method belongs to.
You can achieve it by using SE80->Repository Information System
Comments
Post a Comment