Confirmed users
125
edits
(Updates - removing some things we should no longer promote) |
(Add notes on assertions) |
||
| Line 86: | Line 86: | ||
You may also be interested in the remote protocol inspector add-on: https://github.com/firebug/rdp-inspector/wiki | You may also be interested in the remote protocol inspector add-on: https://github.com/firebug/rdp-inspector/wiki | ||
== Enabling DevTools Assertions == | |||
Highly recommended for DevTools hackers! | |||
Add this to your '''<tt>.mozconfig</tt>''': | |||
ac_add_options --enable-debug-js-modules | |||
Assert your own invariants like this: | |||
const { assert } = require("devtools/shared/DevToolsUtils"); | |||
// ... | |||
assert(1 + 1 === 2, "I really hope this is true..."); | |||
== JavaScript Modules == | == JavaScript Modules == | ||