question

Abhay Bajpai avatar image
0 Likes"
Abhay Bajpai asked Jonah K answered

Print/Return a value for debugging in Flex Script

How do i see the value saved in a variable/map etc and return or print it for debugging purposes? For example, i want to return the value from the global table as shown below.

separacion-jn1 (1).fsm1685046346268.png

FlexSim 23.0.8
return value
1685046346268.png (121.2 KiB)
separacion-jn1-1.fsm (127.8 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jonah K avatar image
1 Like"
Jonah K answered

Under the Debug menu at the top of the screen, select "Output Console". Then you can use print() to print your values to the console in your resettrigger. This will be fired every time you hit reset.

1685048870824.png


1685048870824.png (339.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.