I've found one approach that works. Posting it here in case someone else
needs it.

If there is a simpler method, do let me know.

Use "./gradlew clean releaseTarGz -x test" to build a tarball with my
changes

Take the generated tarball in core/build/distributions, expand it and run
it.

Set KAFKA_DEBUG env var to true before running it

In intellij, use Run->Attach to Process

It connects and I am able to set breakpoints and step through.

Regards
Pradyumna

On Thu, 24 Oct, 2024, 10:29 am Pradyumna K, <kpachar...@gmail.com> wrote:

> Hello everyone,
>
> Is there a way I could run Kafka from within IntelliJ, in debug mode, and
> let producers and consumers connect to it?
>
> (I want to run producers and consumers as separate programs on my computer
> and let them connect to this Kafka which is running under debugger, so that
> I can put breakpoints in Kafka code in IntelliJ)
>
> Thank you
> Pradyumna
>

Reply via email to