What is the best way to debug enterprise browser?

I am new to enterprise browser. I am working with a Motorola MC92N0-G scanner. On the backend I am using an MVC PHP Framework. One of the demos worked on it for me but when I modified the demo for my own uses things stopped working. Is there a good way to debug what is going wrong?