<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/logpoints-walkthrough-jr326g5op" -->

---
title: Logpoints Walkthrough | daily.dev
description: A walkthrough demonstrating how to use IntelliJ IDEA's logpoints feature to debug a gRPC client-server bug involving incorrect discount calculations. The guide...
canonical: https://daily.dev/posts/logpoints-walkthrough-jr326g5op
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Logpoints Walkthrough | daily.dev
og:description: A walkthrough demonstrating how to use IntelliJ IDEA's logpoints feature to debug a gRPC client-server bug involving incorrect discount calculations. The guide...
og:url: https://daily.dev/posts/logpoints-walkthrough-jr326g5op
og:image: https://api.daily.dev/og/posts/jR326g5oP.png
og:image:alt: Logpoints Walkthrough
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Logpoints Walkthrough

**[JetBrains](https://daily.dev/sources/jetbrains)** · 9 min read · 0 upvotes · 0 comments

## Summary

A walkthrough demonstrating how to use IntelliJ IDEA's logpoints feature to debug a gRPC client-server bug involving incorrect discount calculations. The guide covers attaching to a remote server process, setting logpoints to trace execution without suspending the program, comparing logpoints against println statements and regular breakpoints, and even using logpoint expressions to modify runtime behavior (like extending a gRPC timeout). It also introduces the bundled ij-debugger AI agent skill, which can automatically generate logpoint expressions to work around issues like expiring deadlines. The piece highlights improvements to logpoints introduced in IntelliJ IDEA 2026.2, including reduced debugger overhead through instrumentation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.jetbrains.com/idea/2026/09/logpoints-walkthrough>

## Questions this post answers

### What improvements did IntelliJ IDEA 2026.2 make to logpoints?

IntelliJ IDEA 2026.2 introduced a faster way to set logpoints by clicking in the gutter between two executable lines and entering the expression to log, plus removed debugger-introduced overhead through instrumentation so logpoints execute faster, though heavy logging expressions can still take time in hot paths.

_Developers relying on IDE debugging tools can track feature updates like these through daily.dev._

### Why would I use logpoints instead of breakpoints when debugging a gRPC server with a client deadline?

Logpoints avoid suspending the server, so they don't trigger the gRPC client's deadline cancellation, which happens because gRPC propagates client-side timeouts to the server and cancels in-progress work when they expire. Regular breakpoints suspend execution, causing the deadline to expire and the request to fall into an unhelpful cancellation code path.

_Teams debugging timeout-sensitive gRPC services can compare tooling tradeoffs like this on daily.dev._

### Can a logpoint expression modify a running program's behavior, like changing a timeout value?

Yes, logpoint expressions can produce side effects, such as reassigning a local variable like timeoutNanos right after it is set in a library method, effectively overriding a gRPC request's timeout at runtime. Multiline logpoint logic can even scope the change to requests carrying a specific debug header, leaving normal traffic unaffected.

_Developers exploring runtime-patching debug tricks can find deeper walkthroughs like this via daily.dev._

## Similar posts on daily.dev

- [Println Debugging Done Right](https://daily.dev/posts/println-debugging-done-right-i86qdvzpv) · JetBrains · 18 upvotes · 3 comments
- [Powering Up Debugging Without AI](https://daily.dev/posts/powering-up-debugging-without-ai-jkrc6a8ym) · ProAndroidDev · 2 upvotes · 0 comments
- [foojay – a place for friends of OpenJDK](https://daily.dev/posts/foojay-a-place-for-friends-of-openjdk-khfl2ksme) · Foojay.io · 0 upvotes · 0 comments

---

Tags: [#devtools](https://daily.dev/tags/devtools), [#java](https://daily.dev/tags/java), [#kotlin](https://daily.dev/tags/kotlin), [#grpc](https://daily.dev/tags/grpc)

[View this post on daily.dev](https://daily.dev/posts/logpoints-walkthrough-jr326g5op)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Logpoints Walkthrough","url":"https://daily.dev/posts/logpoints-walkthrough-jr326g5op","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/logpoints-walkthrough-jr326g5op"},"datePublished":"2026-09-16T16:14:36.501Z","dateModified":"2026-09-16T16:59:09.625Z","description":"A walkthrough demonstrating how to use IntelliJ IDEA's logpoints feature to debug a gRPC client-server bug involving incorrect discount calculations. The guide...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8439761568a16a02b3cc828a10cf8dc1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8439761568a16a02b3cc828a10cf8dc1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"JetBrains","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"JetBrains","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/53ecf0c676f34b3896ee109609d91efa","url":"https://daily.dev/sources/jetbrains"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/logpoints-walkthrough-jr326g5op","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devtools,java,kotlin,grpc","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JetBrains","item":"https://daily.dev/sources/jetbrains"},{"@type":"ListItem","position":3,"name":"Logpoints Walkthrough"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/logpoints-walkthrough-jr326g5op#faq","mainEntity":[{"@type":"Question","name":"What improvements did IntelliJ IDEA 2026.2 make to logpoints?","acceptedAnswer":{"@type":"Answer","text":"IntelliJ IDEA 2026.2 introduced a faster way to set logpoints by clicking in the gutter between two executable lines and entering the expression to log, plus removed debugger-introduced overhead through instrumentation so logpoints execute faster, though heavy logging expressions can still take time in hot paths. Developers relying on IDE debugging tools can track feature updates like these through daily.dev."}},{"@type":"Question","name":"Why would I use logpoints instead of breakpoints when debugging a gRPC server with a client deadline?","acceptedAnswer":{"@type":"Answer","text":"Logpoints avoid suspending the server, so they don't trigger the gRPC client's deadline cancellation, which happens because gRPC propagates client-side timeouts to the server and cancels in-progress work when they expire. Regular breakpoints suspend execution, causing the deadline to expire and the request to fall into an unhelpful cancellation code path. Teams debugging timeout-sensitive gRPC services can compare tooling tradeoffs like this on daily.dev."}},{"@type":"Question","name":"Can a logpoint expression modify a running program's behavior, like changing a timeout value?","acceptedAnswer":{"@type":"Answer","text":"Yes, logpoint expressions can produce side effects, such as reassigning a local variable like timeoutNanos right after it is set in a library method, effectively overriding a gRPC request's timeout at runtime. Multiline logpoint logic can even scope the change to requests carrying a specific debug header, leaving normal traffic unaffected. Developers exploring runtime-patching debug tricks can find deeper walkthroughs like this via daily.dev."}}]}
```

