Any way to get meaningful errors in the Ember CLI?
I am using the Ember CLI and I have a problem in my code that has to do with computed aliases and model relationships. I cannot debug this issue as I am getting errors like this:
"EmberError@http://localhost/assets/vendor.js:22707:15
Ember.default.assert@http://localhost/assets/vendor.js:15408:13
ember$data$lib$system$store$finders$$_find/<@http://localhost/assets/vendor.js:63941:9
tryCatch@http://localhost/assets/vendor.js:55993:16
invokeCallback@http://localhost/assets/vendor.js:56005:17
publish@http://localhost/assets/vendor.js:55976:11
@http://localhost/assets/vendor.js:37026:7
Queue.prototype.invoke@http://localhost/assets/vendor.js:11432:11
Queue.prototype.flush@http://localhost/assets/vendor.js:11497:13
DeferredActionQueues.prototype.flush@http://localhost/assets/vendor.js:11302:13
Backburner.prototype.end@http://localhost/assets/vendor.js:10727:11
Backburner.prototype.run@http://localhost/assets/vendor.js:10782:15
executeTimers@http://localhost/assets/vendor.js:11164:7
updateLaterTimer/backburner._laterTimer<@http://localhost/assets/vendor.js:11153:11
"
Is there a way to get nicer errors? Even simple javascript exceptions would be better than this.
I have this in my console:
"DEBUG: -------------------------------" vendor.js:15442:4
"DEBUG: Ember : 1.12.0" vendor.js:15442:4
"DEBUG: Ember Data : 1.0.0-beta.17" vendor.js:15442:4
"DEBUG: jQuery : 1.11.3" vendor.js:15442:4
"DEBUG: -------------------------------"
... Some deprecations messages from Ember Data that is irrelevant
"Ember Inspector Active"
... The error above
+3
source to share
3 answers
I think this issue is related to Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=670002 . In my development environment the console.log shows the vendor.js line number (not desired), but through debugging I can see the sources of my project.
Have you tried debugging sources? The debugger tab should display all application files and some of the different addons. I have ember 2.4.4.
0
source to share