I use a lot of Java code in my Ivy projects and I desperately need to debug them. If I set a break point in the source code, the execution does not stop at the break point.

asked 08.10.2013 at 15:51

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.1k567688
accept rate: 75%


Unfortunately you have to use a tiny special little trick. You have to use remote debugging. To activate remote debugging in the Designer, please open the file Xpert.ivy Designer.ini in the installation directory of the Designer and add the following line at the end of the file:

-agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=n

With this additional JVM argument you permit to a remote debugger to connect with the JVM on port 8001 to debug.

After that, restart the Designer. As a second step, please go to Run -> Debug Configurations and create a new Remote Java Application Debugging configuration. In the configuration, choose the project that you want to debug, set the host and the port (localhost and 8001). And now start the fun with clicking on the Debug button. From now on, the break points will suspend the execution of the Java class so that you can quietly debug your code.

Launch configuration for Remote Java Application Debugging

On the server you have to add the same line into the entry ivy.vm.additional.options of the ilc file for the server executable. See the chapter Tools Reference/Windows Program Launcher Configuration for more details about ilc files.



Note: This question and answer was originally posted by Heinrich Spreiter on his Xpert.ivy Hacker blog. Henry, many thanks to you for your enthusiastic work.

link

answered 08.10.2013 at 16:06

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.1k567688
accept rate: 75%

...another possibility would be to write a main method with test data and use regular eclipse java debugging facilities.

link

answered 18.10.2013 at 11:08

Nikel%20Weis's gravatar image

Nikel Weis
321262933
accept rate: 57%

here is my way to remote debug Ivy Server 5.1

For Window: put the following param to bin/.ilc file, the .ilc file must be named to the correct server executable file, for example, if server launched by AxonIvyEngineC.exe, then the .ilc file name must be AxonIvyEngineC.ilc

ivy.vm.additional.options=-agentlib:jdwp=transport=dt_socket,server=y,address=9000,suspend=n

For Linux. i.e Ubuntu 12.04 : put the following param to bin/AxonIvyEngine.conf

JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,server=y,address=9000,suspend=n"

And then create remote debug from Ivy designer/Eclipse to server with port 9000

link

answered 20.11.2014 at 05:05

hungnam's gravatar image

hungnam
1223
accept rate: 0%

edited 21.11.2014 at 10:37

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×43
×6

Asked: 08.10.2013 at 15:51

Seen: 4,937 times

Last updated: 21.11.2014 at 10:37