Page 1 of 1

Debug an RDMLX Trigger

Posted: Mon Feb 18, 2019 12:18 pm
by soa
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

Posted: Mon Feb 18, 2019 2:42 pm
by MarkDale
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.

Re: Debug an RDMLX Trigger

Posted: Mon Feb 18, 2019 4:17 pm
by soa
Thanks for the response Mark. I'm trying to do this from a green screen function.

Debug an RDML Trigger

Posted: Sat Feb 15, 2020 3:34 am
by LANSAfolks
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.