SNMP based checks development

The problem is that i don’t know how to debug possible errors, also there’s no specific info about developing WATO definitions, just things you must and you mustn’t do, also I dont clearly know how to debug WATO definitions, i’ve made some tries but if i dont get any errors on screen but still won’t work I’m so far from fixing what could happen, if you want i can post my test code here, but as i said i just made my own from reading others code.