I have a Font Detect code that does not work in Google Chrome, and I thought I would find out what is going on. But I still can't figure out how I can add breakpoints or do watch etc. I am looking for something like FireBug. I assume I would need to install a third party debugger?
You must use the Javascript Debugger available in the menu on the right of the Omnibar. Just find the item called something like "Tools foir developpers" Then type "help" in the Debugger to have the options and add breakpoints in your code.
The debugger is different than most because the functionality is driven from it's Command Line.
Eric Pascarello has a pretty good intro to it here -- http://www.pascarello.com/lessons/browsers/ChromeDebugHelp.html
Thanks samy. I am still do not know how to use this debugger. Is there any documentation that I could read up?
My exact needs right now are like this. I have script (since there are many scripts) that I wish to add a breakpoint to. After that I wish to view the content of some variables. By typing help, I get the following:
break [location]
But what does Location and Condition mean? I thought location meant the url of the script and the condition the line number. But this does not seem to be the case.
I don't know Chrome, so I might be totally mistaken here. But I though its developer tools were based on WebKit? If so, then I expect them to work the same as in Safari. And for Safari no command line things are needed?
(See Using the Scripts Pane at Apple's Developer Connection.)