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

In most debuggers I have used, if you put a breakpoint on the first line of the method chain, you can "step over" each function in the chain until you get to the one you want.

Bit annoying, but serviceable. Though there's nothing wrong with your approach either.



debuggers can take it even further if they want that UX. in firefox given a chain of foo().bar().baz() you can set a breakpoint on any of 'em.

https://gist.github.com/user-attachments/assets/3329d736-70f...




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

Search: