Anyhow, I wanted to turn on line numbers in VS so I could track down the reported error. Tools->Options->Text Editor->All Languages, Display | Line Numbers. See graphic below:
parseInt('12.8') == 12
Math.round('12.8') == 13
I am still struggling with the new debugging window in Safari 6. The old tool had a nice big panel for displaying the console.log as well as the script source, call stack, locals and such. The new version now will only show the log in the whole window. You have the switch back and forth between the Console view and the Script view (for stepping through code, for example).
Even that was hard to find.
You have to select the Console tool (solid arrow) and then choose the file to watch (hollow arrow). I’m hoping there’s something else I’m missing because this sure does not seem like and improvement.
Well, today there were only two script files available (out of the normal hundred we use for the project). Cordova.js and Require.js. And the debugger kept stopping on some breakpoint inside Require.js which now looks like one long “minified” file.
Then, I remembered an email which went by last night indicating that there was now an index.debug.html file which we were to use for debugging. So, what’s happening now as part of the build process is the main index.html (and its components) are being minified and shoved into require.js, which is require’s job. The breakpoints which had been in the component files were now inside require, I guess.
All I needed to do was to drop index.debug.htm into the browser. And things are now the way I’ve been expecting them.