Go Back

Is There Any Way To Inspect %OPTION At Debug Time?

We set several system options via %OPTION (https://www.synergex.com/docs/versions/v111/index.htm#lrm/lrmChap9OPTION.htm) however it is unclear what the best way to investigate this is during a debug session. While we realize we could add a line in our code to inspect it, this seems heavy handed.

Is there a way to inspect the current system options in the debugger (ala C#'s "Quick Watch").

1 Answer
0   | Posted by Ace Olszowka to Synergy DBL on 6/30/2020 1:53 PM
Best Answer chosen by Ace Olszowka
Jerry Fawcett
In the traditional debugger, one can examine the compiler and runtime’s current options and flags with the traditional debugger’s SHOW OPTIONS command.  See the link below for more information.
                https://www.synergex.com/docs/versions/v111/index.htm#tools/toolsChap2SHOW.htm

In the .NET debugger, enter the below, in the Immediate window replacing OPTION with the system option to be queried –
Synergex.SynergyDE.SysRoutines.f_option(Synergex.SynergyDE.IntegerDesc.CreateLiteral(OPTION), Synergex.SynergyDE.VariantDesc.notPassedInteger);

If the option is set 1, will be returned and if the option is not set 0 will be returned.

 

7/9/2020 9:49 PM   1  
Please log in to comment or answer this question.