Hi Gwen,

After your email, I tried debugging the test in
unit.kafka/producer/ProducerTest.scala, I can debug it within Intellij
I'm not trying to debug the tests, but things like tools:
ConsumerOffsetChecker as it has a main method
When I do that, I get this error:-

Error:scalac: Output path
/Users/pbharaj/Desktop/Dev/OpenSource4/Kafka-0.8.2.1/build is shared
between: Module 'Kafka-0.8.2.1' production, Module 'Kafka-0.8.2.1' tests
Please configure separate output paths to proceed with the compilation.
TIP: you can use Project Artifacts to combine compiled classes if needed.

Regards,
Prabhjot

On Fri, Nov 6, 2015 at 10:00 AM, Gwen Shapira <g...@confluent.io> wrote:

> I also have a gradle plugin, but I don't think its used for debugging.
>
> What prevents you from debugging? What happens when you right-click on a
> test and select "debug"?
>
> On Thu, Nov 5, 2015 at 7:15 PM, Prabhjot Bharaj <prabhbha...@gmail.com>
> wrote:
>
> > Hi Jeff,
> >
> > So, if you've the Kafka source in a directory, how have you set up your
> > intellij ?
> > I have used ./gradlew idea as was mentioned in some posts.
> > But, how do you debug in intellij?
> > I use the bare bones Intellij with Scala plugin. Do you have any other
> > plugin to support debug?
> >
> > Regards,
> > Prabhjot
> > On Nov 6, 2015 5:53 AM, "Jeff Holoman" <jholo...@cloudera.com> wrote:
> >
> > > For what it's worth, I've never done the gradlew idea thing and
> > debug/unit
> > > testing in Intellij works fine for me.
> > >
> > >
> > >
> > > On Thu, Nov 5, 2015 at 6:26 PM, Rad Gruchalski <ra...@gruchalski.com>
> > > wrote:
> > >
> > > > It never worked for me. I might have to try again. And, yes, that was
> > > > after generating the intellij stuff with gradle.
> > > > Will give it a shot again and, if I still have issues, ask here.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Kind regards,
> > > > Radek Gruchalski
> > > > ra...@gruchalski.com (mailto:ra...@gruchalski.com) (mailto:
> > > > ra...@gruchalski.com)
> > > > de.linkedin.com/in/radgruchalski/ (
> > > > http://de.linkedin.com/in/radgruchalski/)
> > > >
> > > > Confidentiality:
> > > > This communication is intended for the above-named person and may be
> > > > confidential and/or legally privileged.
> > > > If it has come to you in error you must take no action based on it,
> nor
> > > > must you copy or show it to anyone; please delete/destroy and inform
> > the
> > > > sender immediately.
> > > >
> > > >
> > > >
> > > > On Friday, 6 November 2015 at 00:10, Gwen Shapira wrote:
> > > >
> > > > > Running tests from intellij is fairly easy - you click on the test
> > name
> > > > and
> > > > > select "run" or "debug", if you select "debug" it honors
> breakpoints.
> > > > >
> > > > > Rad, what happens when you try to run a test within Intellij?
> > > > >
> > > > > On Thu, Nov 5, 2015 at 2:55 PM, Dong Lin <lindon...@gmail.com
> > (mailto:
> > > > lindon...@gmail.com)> wrote:
> > > > >
> > > > > > Hi Rad,
> > > > > >
> > > > > > I never use intellij to run test for kafka. It is probably easier
> > to
> > > > run it
> > > > > > via command line. You can check README.md (http://README.md) for
> > > more
> > > > information on how to
> > > > > > run tests.
> > > > > >
> > > > > > Dong
> > > > > >
> > > > > > On Thu, Nov 5, 2015 at 2:33 PM, Rad Gruchalski <
> > ra...@gruchalski.com
> > > > (mailto:ra...@gruchalski.com)>
> > > > > > wrote:
> > > > > >
> > > > > > > Dong,
> > > > > > >
> > > > > > > Does it allow running, say, tests in debug? I tried that and
> > never
> > > > > > managed
> > > > > > > to get any test to run in intellij. Say, to set some
> breakpoints
> > > and
> > > > > > > debug...
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Kind regards,
> > > > > > > Radek Gruchalski
> > > > > > > ra...@gruchalski.com (mailto:ra...@gruchalski.com) (mailto:
> > > > > > > ra...@gruchalski.com (mailto:ra...@gruchalski.com))
> > > > > > > de.linkedin.com/in/radgruchalski/ (
> > > > http://de.linkedin.com/in/radgruchalski/) (
> > > > > > > http://de.linkedin.com/in/radgruchalski/)
> > > > > > >
> > > > > > > Confidentiality:
> > > > > > > This communication is intended for the above-named person and
> may
> > > be
> > > > > > > confidential and/or legally privileged.
> > > > > > > If it has come to you in error you must take no action based on
> > it,
> > > > nor
> > > > > > > must you copy or show it to anyone; please delete/destroy and
> > > inform
> > > > the
> > > > > > > sender immediately.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Thursday, 5 November 2015 at 23:27, Dong Lin wrote:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > If you want to browse kafka code in intellij, you can setup
> > > > intellIj
> > > > > > > > project by doing ./gradlew idea.
> > > > > > > >
> > > > > > > > Hope it helps,
> > > > > > > > Dong
> > > > > > > >
> > > > > > > > On Thu, Nov 5, 2015 at 3:16 AM, Prabhjot Bharaj <
> > > > prabhbha...@gmail.com (mailto:prabhbha...@gmail.com)
> > > > > > > (mailto:prabhbha...@gmail.com)>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > I'm using kafka 0.8.2.1 version with IntelliJ.
> > > > > > > > > Sometimes, I change the code and build it using this
> command:
> > > > > > > > >
> > > > > > > > > ./gradlew -PscalaVersion=2.11.7 releaseTarGz
> > > > > > > > >
> > > > > > > > > In some cases, I feel the need for debugging the code
> within
> > > > > > IntelliJ.
> > > > > > > > >
> > > > > > > > > e.g. I, currently, want to debug the ConsumerOffsetCheker
> to
> > > see
> > > > how
> > > > > > it
> > > > > > > > > communicates with zookeeper.
> > > > > > > > >
> > > > > > > > > How can I do that with IntelliJ ??
> > > > > > > > >
> > > > > > > > > Currently, if I try and debug the file
> > > > ConsumerOffsetChecker.scala in
> > > > > > > > > IntelliJ, I get this message:-
> > > > > > > > >
> > > > > > > > > Error:scalac: Output path
> > > > > > > > > /Users/pbharaj/Desktop/Dev/OpenSource4/Kafka-0.8.2.1/build
> is
> > > > shared
> > > > > > > > > between: Module 'Kafka-0.8.2.1' production, Module
> > > > 'Kafka-0.8.2.1'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > tests
> > > > > > > > > Please configure separate output paths to proceed with the
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > compilation.
> > > > > > > > > TIP: you can use Project Artifacts to combine compiled
> > classes
> > > if
> > > > > > > >
> > > > > > >
> > > > > > > needed.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Regards,
> > > > > > > > > Prabhjot
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Jeff Holoman
> > > Systems Engineer
> > >
> >
>



-- 
---------------------------------------------------------
"There are only 10 types of people in the world: Those who understand
binary, and those who don't"

Reply via email to