Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why can’t you debug?


Because it doesn’t throw an error, and it hands deep inside the vue code when an even to add one more nested component is triggered.


Why not just debug on component creation? Or maybe on DOM subtree modification [0]? Or maybe modify the compiled JS to add log or trace statements?

It’s all in your browser. You have a debugger at your fingertips.

Why doesn’t Vue stop this from happening? Because it assumes whatever you’re telling it to do is what you want it to do.

0: https://developer.chrome.com/docs/devtools/javascript/breakp...


iirc Chrome sometimes handles stack-overflows and/or out of memory conditions badly. If you have any function there that is called try making an entry/exit counter and log/throw if it goes above some threshold.


Maybe try console logging?


But what if the component is a recursively nested logging tool?


They might even become part of the next YC batch. A recursively nested logging platform - quite a novel idea. Possibly even possible to patent.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: