Debugging step implementation using Java/Eclipse

298 views
Skip to first unread message

Andre Fourie

unread,
Mar 19, 2015, 6:39:44 PM3/19/15
to getg...@googlegroups.com
Hi,

Trying to get debugging of a Java step implementation working using Eclipse. I can't get the JVM to start up in debug mode even though I have configured the default properties file for the project to contain the JVM start-up parms as expected. Property file contains the following:
# JVM argument passed to java while launching
gauge_jvm_args = -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y

Anything else I need or am I missing something? Even with above, JVM starts up and runs through, i.e. does not suspend and wait for remote Java application (Eclipse) connection to come through.


Prateek Kumar Baheti

unread,
Mar 20, 2015, 2:07:44 AM3/20/15
to Andre Fourie, getg...@googlegroups.com
To run in Debug mode you could set the environment variable GAUGE_DEBUG_OPTS to the port number you want to attach a debugger to the process.

Gauge-java plugin will add the necessary JVM args required for running a debug server and wait for a debugger to attach before proceeding with execution, you do not need to set the gauge_jvm_args value.

For example, you can run gauge specs with the value GAUGE_DEBUG_OPTS=8001 and then run a Remote debug configuration to attach at port 8001 in eclipse.

This hasn't been documented yet.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/78dc5da7-9e29-432a-aa28-e00ffc45e4c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages