Debugging iSeries2web programs is very simple. You can debug as you normally would, the only thing is that you have to do is use a command called STRDBGI2W, instead of the normal STRDBG.
When iSeries2web operates the jobs are normally closed after they’re executed and the processing is finished. This can be altered on the server setting with the variable SVRKEEP (“Keep server alive”) in file SSSVR001P to “1”. This will keep the program(s) open in memory – producing faster runtime. On the other hand you will have to stop / start the system each time you have a new program version you want to activate, as the system will use the same program (QRPLOBJ) until it is stopped.
We therefore recommend that you create 2 environments.
1. An environment for development where you set SVRKEEP to 0 meaning that the programs will end setting *INLR *ON,
2. An environment for production where you set SVRKEEP to 1 leaving the programs “open” for faster response times.
Whether you set SVRKEEP to 0 or 1 you are able to debug but then you have to remember to end the server as you change your program.