Skip to content

Configuring the debugger

General requirements

  • PTFs (see below)
  • IBM i Debug extension (marketplace)
    • installed into Visual Studio Code
  • Debug Service Certificates setup
    • As of Code for IBM i 2.16.0, the Debug Service is configured inside of Navigator for IBM i. If you’re using Code for IBM i 2.16.0, then you are required to use this method to configure and start the Debug Service. Code for IBM i 2.16.0+ supports only Debug Service 3+.

Required PTFs

To make use of the Debug Service, you need the following PTFs:

  • IBM i 7.6
    • Debug Service PTF SJ06921 (and SJ06919 prereq)
    • Navigator for i PTF SJ06431 and HTTP Group PTF SF99962 level 4 or higher
    • Java 17 LPP 5770JV1 Option 20 (not Java from Yum)
  • IBM i 7.5
    • Debug Service PTF SJ06931 (and SJ06928 prereq)
    • Navigator for i PTF SJ06353 and HTTP Group PTF SF99952 level 23 or higher
    • Java 11 is required via LPP 5770JV1 Option 19 (not Java from Yum)
  • IBM i 7.4
    • Debug Service PTF SJ06934 (and SJ06933 prereq)
    • Navigator for i PTF SJ06355 and HTTP Group PTF SF99662 level 45 or higher
    • Java 11 is required via LPP 5770JV1 Option 19 (not Java from Yum)
  • IBM i 7.3
    • Debug Service PTF SJ07259 (and SJ06940 prereq)
    • Navigator for i PTF SJ06783 and HTTP Group PTF SF99722 level 61 or higher
    • Java 11 is required via LPP 5770JV1 Option 19 (not Java from Yum)

All OS versions require 5770WDS option 60 (Workstation Tools - Base).

After you have installed the PTFs, the connection inside of Visual Studio Code will need to be restarted.

Configuring & starting the service

This must be done with user that has *ALLOBJ and *SYSADM privlages. Below are the base requirements to configure the certificate:

  • Master key 1 is set (this can be done in Navigator for IBM i under Security > Cryptographic Services Key Management > Manage Master Keys)
  • *SYSTEM store is populated with a valid certificate (this can be done in Digital Certificate Manager)
  1. On Navigator for IBM i, go to Network > Servers > TCP/IP Servers
  2. Scroll down to System Debugger and right click
  3. Hover over Stop Instance, select Debug Service
  4. Right click System Debugger again, select Regenerate Debug Service Trust Store
  5. Enter in the password for the *SYSTEM store, click OK
  6. Select the certificate you want to use, click OK
  7. Right click System Debugger again, hover over Start Instance, select Debug Service

NOTE: This needs to be done each time you renew or replace that certificate, it does not automatically update when you update the *SYSTEM store

Updating the service

When there are newer Debug service or Navigator/HTTP Group PTFs, the following steps are required:

  1. Restart ADMIN1 server
    • If HTTP Group PTF does not show as applied, IPL might be required.
  2. Regenerate debug service trust store (as described above)