Hi Pradyumna, Yes, you can do this. What I tend to do is to start my broker from a terminal window with the DEBUG_SUSPEND_FLAG and KAFKA_DEBUG environment variables set. This means the broker suspends as it starts and waits for a connection from a debugger. Then I attach IntelliJ to the running broker with my breakpoints set and I can use the debugger.
So, my command line would be something like: DEBUG_SUSPEND_FLAG=y KAFKA_DEBUG=y bin/kafka-server-start.sh --bootstrap-server ..... Hope this helps. Andrew ________________________________________ From: Pradyumna K <kpachar...@gmail.com> Sent: 24 October 2024 05:59 To: dev@kafka.apache.org <dev@kafka.apache.org> Subject: Running Kafka from IDE 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