Skip to content

Unable to enable GraalVM debugging #626

@baptistegrimaud

Description

@baptistegrimaud

Environment and versions used

JS modules 1.2.0

Steps to reproduce

Enable debugging with the following GraphQL query:

mutation debugGraalVM {
admin {
    jahia {
      configuration(
        pid: "org.jahia.modules.javascript.modules.engine.jsengine.GraalVMEngine"
      ) {
        polyGlotInspect: value(name: "polyglot.inspect", value: "0.0.0.0:9229")
        polyGlotInspectSuspend: value(name: "polyglot.inspect.Suspend", value:"false")
        polyGlotInspectSecure: value(name: "polyglot.inspect.Secure", value:"false")
      }
    }
  }
}

Current Behavior

It fails with:

[org.jahia.modules.javascript.modules.engine.jsengine.GraalVMEngine(252)] : The activate method has thrown an exception
java.lang.IllegalArgumentException: Could not find option with name engine.inspect.Secure.
	... suppressed 9 lines
	at org.jahia.modules.javascript.modules.engine.jsengine.GraalVMEngine.activate(GraalVMEngine.java:127) ~[?:?]
	... suppressed 2 lines
	at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
	... suppressed 20 lines
	at java.base/java.lang.Thread.run(Thread.java:840) [?:?]

Desired Behavior

the debug mode should be enabled for GraalVM

Initially reported by @hduchesne on Slack.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions