Debug an RDMLX Trigger
Debug an RDMLX Trigger
I need to debug a trigger. This is straightforward with RDML I just press F10 but I can't work out how I do this for RDMLX. Is this possible?
Re: Debug an RDMLX Trigger
For me, if I am using an RDMLX function (old demo trigger PSLTRG1) as a trigger, it works.
I mark the debug line using F9, ensure that the function is compiled for debug, and then run either a web page or a form in debug mode. The line to be debugged comes up in the IDE.
I mark the debug line using F9, ensure that the function is compiled for debug, and then run either a web page or a form in debug mode. The line to be debugged comes up in the IDE.
Re: Debug an RDMLX Trigger
Thanks for the response Mark. I'm trying to do this from a green screen function.
-
LANSAfolks
- Posts: 49
- Joined: Thu Oct 10, 2019 9:32 am
Debug an RDML Trigger
I was wondering if there is an elegant way to debug (via the VL IDE) an RDML trigger function that's running on an IBMi server from a Visual LANSA app?
Some options that come to mind are:
1. Convert the trigger to RDMLX, run under debug and then recreate it back to RDML when done
2. Perform debugging on the IBMi server?
3. Put debugging code into the trigger function, perhaps writing results to a text file etc.
One wish: It would be cool if LANSA allowed SET_SESSION_VALUE to start DBUG=Y and DBHT within a program.
Some options that come to mind are:
1. Convert the trigger to RDMLX, run under debug and then recreate it back to RDML when done
2. Perform debugging on the IBMi server?
3. Put debugging code into the trigger function, perhaps writing results to a text file etc.
One wish: It would be cool if LANSA allowed SET_SESSION_VALUE to start DBUG=Y and DBHT within a program.