-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
DART Cookbook
By :
In this recipe, we will examine how to debug your app in the Chrome browser.
Clicking on the left margin before a line of code places a breakpoint, which is indicated by a fat blue arrow.

Debugging JS in Chrome
Chrome uses the source map file <file>.js.map generated while compiling the JavaScript code to map the Dart code to the JavaScript code in order to be able to debug it.
In this recipe, we will examine how to debug your app in the Firefox browser.
In Firefox, the source maps feature is not yet implemented. Use Shift + F2 to get the developer toolbar and the command line. In the top menu, you will see Debugger. Place a breakpoint and reload the file. Code execution then stops and you can inspect the value of the variables, as shown in the following screenshot:

Debugging JS in Firefox
Change the font size
Change margin width
Change background colour