Ticket #6863 (closed defect: fixed)
Debugging is broken
| Reported by: | guest | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | General | Version: | 1.1.1 |
| Severity: | normal | Keywords: | debug debugger try exception |
| Cc: | peller |
Description
Debugging is broken and complaints are long overdue. Since Firefox exceptions do keep track of the call stack, but Firefox or Firebug is unable to produce or show the correct lines of code (e.g., if document.write is used) and is therefore nearly useless for debugging, and since IE exceptions do not record the call stack if the exception is ever caught rather than being allowed to percolate to the top at which case source code is indeed accurately displayed, Dojo needs to be very careful about its try statements. For debugging purposes there should be an option to turn them off, perhaps coordinated with djConfig.isDebug. This should disable use of try in dojo.Deferred._fire, dojo._watchInFlight(), and dojo.loaded() so that errors in load code for xhr requests can be properly debugged.