vscode-ibmi icon indicating copy to clipboard operation
vscode-ibmi copied to clipboard

Debug v2: debug service requires Java 11

Open mkwan01 opened this issue 2 years ago • 2 comments

Debug service v2 requires Java 11 to run. The following path need to be updated:

const MY_JAVA_HOME = `MY_JAVA_HOME="/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit"`

The default path for Java 11 is: /QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit

mkwan01 avatar Feb 13 '24 18:02 mkwan01

The debug service currently doesn't expose a version number in the installation directory, so right now we have to determine the version number based on OS version and PTF mapped to a Debug Service version. This means hard coding this detail.

{
  '7.3': {
    'PTF0012': 1,
    'PTF0013': 2
  },
  '7.4': {
    'PTF0014': 1,
    'PTF0015': 2
  },
  '7.5': {
    'PTF0016': 1,
    'PTF0017': 2
  }
}

worksofliam avatar Mar 01 '24 18:03 worksofliam

The plan is that future debug service versions will include a JSON file which will have a version property. This means we don't need to potentially add the logic to determine OS versions and PTFs. There is also the possibly a Java version which we may be able to use.

{
  "version": 2,
  "java": 11
}

worksofliam avatar Mar 01 '24 18:03 worksofliam