We have plans to make KBX more understandable for developers, but at the same time there are a few tricks.
We recommend that you spend most of your development time testing using bookmarklets, as this gives you more control over when your actions fire, making it easier to check the status of the page before and after your rules fire. Applications can be tested using bookmarklets without changing the code and are easy to use.
This does not help to debug in the rare case that your application behaves differently while working in KBX, but it should go past most of the problems that you are currently experiencing.
source share