Debug
In Data it is possible to debug RPGLE code via a specific VSCode extension called Jardis. RPGLE Debugger is available via development evironment.
Configure Jardis (Only for new installation)
Go to development environment, then press Ctrl
+Shift
+P
and type Jardis:Configuration
.
Jardis requires the settings of these mandatory params:
- Jardis: User - The user name used for the authentication
- Jardis: Host - Where kokos are running
- Jardis: Env - Your working environment
After that, you need to restart VSCode (or reload your browser in case of remote development), click on a RPGLE program. If everything is correct, VSCode will notify you through a dialog that will show a message like this: "Jardis connected".
Debug in attach mode
When you are going to attach a breakpoint to the program, Jardis will prompt you a dialog in order to set your session id.
Take in account that, while in remote development you should use Kokos session_id
(type STRDBG
on search bar to get this information) in order to not block the debug sessions of your co-workers, in local development (for instance in playground mode) you can move on without worries.