How to get clear stack trace messages


#1

Hi, for quite some time now I get really annoyed with meteor error stack traces. I develop and start meteor with Webstorm IDE. For example I get such an error:

Error: Cannot read property ‘name’ of undefined
TypeError: Cannot read property ‘name’ of undefined
at http://localhost:3000/app/app.js?hash=074050e346b356d05287617cff8ea8ae3322f50f:596:51
at MethodInvoker._callback (http://localhost:3000/packages/meteor.js?hash=ae8b8affa9680bf9720bd8f7fa112f13a62f71c3:1105:22)
at MethodInvoker._maybeInvokeCallback (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:3557:12)
at MethodInvoker.dataVisible (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:3586:10)
at http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:4471:7
at Array.forEach (native)

This is not very helpful. I would like to know which template and which method and which line in that template was called before error was thrown. Now I just get those cryptic messages that are really hard to track down and especially so when an app gets larger. I am pretty sure I am doing something wrong, there must be a way to get normal stack traces like in all programming environments. Any ideas?


How to debug when stack trace includes none of my own code?