Skip to content

Debug symbols are missing when gauge-java compiles the Java code #188

Description

@glalejos

Hi,

I'm trying to debug the Java code in a Gauge project, but debug symbols are missing. As far as I can see in gauge-java.go, the only possible parameterization of the args variable is related to build directories.

It would help if you could either:

  • Add support for a gauge_javac_args variable to the env/java.properties.
  • Set the -g flag to javac when the GAUGE_DEBUG_OPTS environment variable is present.

Expected behavior

Debug symbols are included during Java code compilation.

Actual behavior

Debug symbols are not included during Java code compilation.

Steps to reproduce

  1. Execute gauge run on any Java project.
  2. Use javap -v on any of the generated classes to check that LocalVariableTable is missing or empty on every method.

Gauge version

I'm using the Debian repository.

Gauge version: 1.0.1
Commit Hash: da2676b

Plugins
-------
html-report (4.0.5)
java (0.6.8)
screenshot (0.0.1)

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions