question

Alessio Merlo avatar image
2 Likes"
Alessio Merlo asked Jordan Johnson answered

How could I debug statistic collector?

Hi,

in the last FlexSim version, I am not able to debug the code written to compute the statistics collector column value.

I remember that the debug in the previous version is allowed.

Has somebody the same problem?

I attached an example (debug-statscoll-example.fsm) where:

1. I created a simple model;

2. I added a statistics collector;

3. I added 4 events and 2 columns;

4. I inserted a breakpoint at line 4 of the code written for the column "object";

In my computer the breakpoint isn't triggered.

Thanks for your support.

PS: I tested also FlexSim 2020 Update 1 and the issue persist.

FlexSim 20.0.3
statistics collectordebugging
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

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

The Statistics Collector doesn't run the code that you edit. It makes a copy (in StatsCollector>stats/liveColumns) and runs that code. That's where you'll need to put your breakpoint. However, the live columns are remade on reset, so perhaps using the debug() command is better.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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