Opened 8 years ago
#4227 new defect
OMEdit displays enumerations as integers when debugging
Reported by: | perost | Owned by: | adeas31 |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | OMEdit | Version: | v1.12.0 |
Keywords: | Cc: |
Description
When using OMEdit to debug the compiler it will show enumeration literals as integers instead of the actual literals.
For example, try debugging this model:
model M connector C Real e; flow Real f; end C; C c1, c2; equation connect(c1, c2); end M;
Set a breakpoint in Config.languageStandardAtMost, on the second statement (Util/Config.mo:435). When the debugger reaches this breakpoint it will display the std variable as 7, instead of LanguageStandard.latest. It will also display the type of std as Integer instead of LanguageStandard.