qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Quack <quack.lor...@gmail.com>
Subject Re: [Help] Debug qpid code
Date Wed, 09 Mar 2016 13:10:07 GMT

If I understand correctly you try to set a break point in IntelliJ but 
start the broker from the command line using the qpid-server script.
That won't work because IntelliJ won't know anything about the running 

To use IntelliJ for debugging you need to start the program you want to 
debug from within IntelliJ.
You can set this up in the "Run -> Edit Configurations..." menu.
Add a new Application and use the org.apache.qpid.server.Main class ad 
"Main class".
in the VM options you should specify "-DQPID_HOME=... -DQPID_WORK=..." 
(obviously replace the ... with paths on your machine)
The working directoy should be the base directory of the project (where 
the top level pom.xml is located).
make sure to set "Use classpath of module" to "qpid-broker".
Also you need to set the JRE to at least 1.7.

That should get the broker started and you should be able to use the 
IntelliJ debugger.

One more thing, if you want to use the Web management console you will 
have to also specify dojo as a dependency for the "qpid-broker" module 
in the "File -> Project Structure..." menu.

Hope that helps.

Kind regards,

On 09/03/16 12:18, Indika Sampath wrote:
> Hi All,
> I forked qpid [1] and studying the implementation. I was create Jmeter
> scripts to publish and subscribe. Those are working fine. So I started to
> identify message publishing flow. I am using Intellij Idea community
> edition version 15. Project imported to Intellij Idea correctly. Next I set
> debug config which is transport to socket and port to 8000. Then start
> broker with ./qpid-server -run:jpda.
> I added break point to line inside deliverCurrentMessageIfComplete() method
> in AMQChannel. But when I hit the broker by publisher, debug point not
> getting executed. Could you please point out correct way of debug code and
> identify message publishing flow.
> [1] https://github.com/apache/qpid-java
> Cheers!

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message