- Import the testcase projects into your workspace
- Set a breakpoint somewhere within your testcase code
- Launch the test using the
galasactl runs submit local --debug ...
command- The JVM running the Galasa test will launch, and pause, listening on a port.
Control the port used with the
--debugPort
parameter orgalasactl.jvm.local.launch.debug.port
property in yourbootstrap.properties
file. The default is 2970. - The
--debugMode
can be set toattach
instead of the defaultlisten
if you wish to connect to a listening debugger instead. By default the testcase JVM will listen on the debug port.
- The JVM running the Galasa test will launch, and pause, listening on a port.
Control the port used with the
- Create a debug configuration of the type "Remote Java Application"
- Set the "port number" field to correspond to the port your testcase is configured to use.
- Set the "connection type" field to be the opposite of what your testcase JVM is configured to use. By default,
galasactl
assumes a 'listen' mode, so in that case the connection type field should be set to 'attach'
- Save the debug configuration
- Launch the debug configuration
- The debugger will connect to the JVM running your Galasa testcase and start a debugging session from the initial start point of the breakpoint you set earlier.