Javascript Bug.

I think I have a bug in my javascript, is there any tools available to help me find the problem ?

Gary Crean
There are several tools

There are several tools available to help diagnose Javascript problems.

I can recommend http://www.jshint.com to check the syntax of your javascript.

Also using Chrome's developers feature can be used to debug you application.

Nb. Some Javascript objects do not exist in chrome, Example the scanner object.

Gary

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Robert Galvin
Stewart - if you walk through

Stewart - if you walk through my , I get into using Google Chrome browser developer tools which are very useful (view errors, step through code, set breakpoints, view css elements, local storage and database access, etc.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Joshua McGinnis
In order to use Chrome for

In order to use Chrome for debugging, I had have to wrap any Rho-specific js in a try/catch so that Chrome doesn't break when it hits the unrecognized functions.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
JoshuaI have developed a stub

Joshua

I have developed a stub JS library that I include in my app during testing on my laptop using Chrome. Basically it creates all of the RhoElements specific objects and just logs them to the Chrome console (instead of causing a Javascript error). See attached. You basically include in it your html:

<script src="jsObjectsChrome.js" type="text/javascript"></script>

And then in Chrome you will see:

Capture.PNG

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Joshua McGinnis
Sweet. Thanks!

Sweet. Thanks!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments