Confirmed users
400
edits
| Line 13: | Line 13: | ||
If you are looking for something specific, use the code-search tool at http://dxr.mozilla.org/ to search for relevant pieces of code. | If you are looking for something specific, use the code-search tool at http://dxr.mozilla.org/ to search for relevant pieces of code. | ||
=== Debugging === | |||
For the JavaScript parts of the code base, [https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android remote debugging] with a desktop version of Firefox is the most effective way to see what is going on, add breakpoints, etc. | |||
For Android Java code, if you have IntelliJ set up, the debugger works well and allows you to set breakpoints, inspect variables and objects, etc. Debugging without an IDE is much more primitive, and you can try using Android Log statements and inspecting logcat. | |||
See http://developer.android.com/tools/debugging/ddms.html | |||
=== Coding Style === | === Coding Style === | ||
| Line 29: | Line 36: | ||
** Good comments are useful and clear even for someone reading a particular area of code for the first time | ** Good comments are useful and clear even for someone reading a particular area of code for the first time | ||
* Avoid using single-letter variables in almost all cases - it makes code harder to read | * Avoid using single-letter variables in almost all cases - it makes code harder to read | ||
=== Lint === | === Lint === | ||