Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



How do I stop on error, the javascript which is ran in Google Chrome?


1 reply to this topic - - - - -

#1 Jose_49

    Neowinian Senior

  • 2,989 posts
  • Joined: 30-July 09

Posted 18 August 2012 - 15:18

Hi guys. I'm having some problems with the DOM giving me the error as "DOM Object Constructor can not be called as a function" only on Webkit browsers (Safari, Chrome, etc.)

The problem is that I'm at a loss with Google Chrome JavaScript debugger. I'm used to Opera's Dragonfly and Firefox' Firebug.

Unfortunately I can't use them (or do not know how to) for knowing where the error is being thrown.


So, can anyone tell me how do I inspect the JavaScript with Google Chrome so I can know where the error is thrown? Please note that the JS being analyzed is not on an external .js page, but on an actual .php

BTW, I used a try and catch statement to read the error. The thing is, that I have dozens of them on the code.

Thanks :p


#2 OP Jose_49

    Neowinian Senior

  • 2,989 posts
  • Joined: 30-July 09

Posted 18 August 2012 - 15:32

Just discovered it! On the JavaScript console there's a pause sign. Just press it and wait for the magic! :p