Currently I use manual workaround like binary search: "delete half of potentially invalid code, check whatever extension loads, repeat for other half, repeat for potentially invalid code".
setting dom.report_all_js_exceptions to true described in How to detect syntax errors when debugging Firefox extensions failed to change anything.