kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Holoman <jholo...@cloudera.com>
Subject Re: Debug kafka code in intellij
Date Fri, 06 Nov 2015 00:23:10 GMT
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 <radek@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
> radek@gruchalski.com (mailto:radek@gruchalski.com) (mailto:
> radek@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 <lindong28@gmail.com (mailto:
> lindong28@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 <radek@gruchalski.com
> (mailto:radek@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
> > > > radek@gruchalski.com (mailto:radek@gruchalski.com) (mailto:
> > > > radek@gruchalski.com (mailto:radek@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 <
> prabhbharaj@gmail.com (mailto:prabhbharaj@gmail.com)
> > > > (mailto:prabhbharaj@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message