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

I am sorry, but whats wrong with doing something like, `print(type(var)); exit()` and just running it once instead of digging through 5-6 stack frames?


Sometimes a function's input or return type can vary depending on the execution path? Also, inserting print statements is often not practical when working on web backend software which is kind of a big thing nowadays. If you can run the service locally, which is not a given, dependencies get mocked out and there's no guarantee that your code path will execute or that the data flowing through it will be representative.




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

Search: