Debugging Gauge Scenario in VS Code

567 views
Skip to first unread message

Mat Walker

unread,
Apr 16, 2018, 11:10:35 PM4/16/18
to getgauge
I have Gauge scenarios with Java as the underlying language.

I'm using VS Code to drive but cant work out how to execute a Scenarion in debug mode so that breakpoint/s can be trriggered.

Am i correct in saying that when a Scenario is run in VS Code (IE. Click Run Scenario) gauge is launched in a cmd shell with the run parameters (ie. gauge run spec/myspec.spec:14) with the output going to the VS Code OUTPUT window? 

That's kinda where I am.  VS Code is not launching a java class directly, so I cant use the 'launch' debug config, which only leaves 'attach' - but I dunno what port to tell it.

Is this possible in VS Code for gauge/java?  I have done a bunch of doc reading and google searching but just cant find anything - which usually I'm being very dumb :-)


Zabil C M

unread,
Apr 17, 2018, 12:16:44 AM4/17/18
to getgauge
Hey Mat, Thanks for trying out Gauge's VS Code plugin with Java!
Unfortunately, Java runner support on VS code is incomplete.

Some features like auto completion of steps, running specs and scenarios works but others like goto definition, debugging etc doesn’t.

You can upvote or watch this issue for updates
--
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/3d4a3cea-8b37-4cd1-a4e9-ae9f6f284dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mat Walker

unread,
Apr 17, 2018, 5:50:50 PM4/17/18
to getgauge
Thanks Zabil.  Do you know if this is the same for IntelliJ?  Just sparked up IntelliJ IDEA and installed the Gauge plugin (0.3.11) as it says it has support for 'Execution and Debugging specs'.  But the steps are showing as 'Undefined step' and nothing will execute.

Is this my finger-trouble (and not set something up properly) or is there more to it?

Saakallya Biswas

unread,
Apr 18, 2018, 1:18:41 AM4/18/18
to getgauge
Hello Mat,

Can you please share a sample project where this issue is replicable and can you please let us know the steps to replicate as well? 

Thanks.

Saakallya Biswas

unread,
Apr 18, 2018, 2:06:50 AM4/18/18
to getgauge
Hello Mat,

Can you please share the intellij version and the gauge version as well? To get the gauge version you can run "gauge -v" and paste the output here.

Thanks
Reply all
Reply to author
Forward
0 new messages