Hacker News new | ask | show | jobs
by invalidname 616 days ago
You're already using IntelliJ just use tracepoints and get a ton of advantages without forgetting prints in production. Stop living in the 70s, that quote makes sense when you're building a kernel not a modern user space app.
1 comments

I appreciate your feedback :) and I understand what you mean.

Let me give a glimpse of the environment I work in. The project I work on is an Android project, which uses Jetpack Compose, a UI library developed by Google, and it's super slow in debug mode. Putting the IDE's debugger on top of it slows down the app to an unusable degree. Also, the already hot CPU and crunching RAM get even hotter.

In this scenario, print debugging gives me much pace, and it works for me.

Plus, as mentioned in the blog post, the blog post is not fully about using Live Templates for printing class names and function names or adding timestamps easily. Rather, the post is more about using a tool that fits your needs. My suggestion is to analyze your workflow and find the most repeating and boring code you write every day, and use custom live template for that :)