Opened 10 years ago
Closed 10 years ago
#3181 closed defect (fixed)
Compiler debug trace does not work (see first example of Users Guide)
Reported by: | Rüdiger Franke | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | 1.9.2 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
A debug trace would give some background info if flattening fails (see a couple of open tickets addressing the Frontend). Also the brand new OpenModelica Users Guide from Feb 2015 starts its first example session in section 1.2.2 with:
>> setDebugFlags("failtrace") >> model A Integer t = 1.5; end A; >> instantiateModel(A)
Unfortunately OpenModelica (r24785) just prints the regular error message without any stack trace. What happened to "failtrace"?
Change History (11)
comment:1 by , 10 years ago
comment:3 by , 10 years ago
I think that a list of all the flags (such as this +showErrorMessages) along with their meaning in the OM Users guide would be very useful. For instance it could be the last chapter or an appendix.
Not only OM users could find more easily how to do things that can be done with flags, but also this would reduce the time spent by developers in the Modelica Forum in answering questions whose answer invoves fags.
comment:4 by , 10 years ago
Most likely I had not found the flag in the last chapter or an appendix - I had tried a couple of different flags from the online help without success. I would just expect that the first introductory example session of the users manual works out of the box, i.e. that additionally required flags are mentioned there.
comment:5 by , 10 years ago
I'd love to add the hint to +showErrorMessage
to the documentation and close the ticket. It's good to have OpenModelicaUsersGuide in the repository. But it's a doc blob!? Would it be thinkable to change to some readable format, like Markdown or Latex, so that additions become visible in the svn diff like source code changes?
comment:6 by , 10 years ago
I have been complaining about the blob for years. I usually do not have Windows computers nearby so I even have to ask other people to change the file.
With latex, the pdf also would not need to be checked into svn since it could simply be re-compiled by the build process.
comment:7 by , 10 years ago
After we do the release I will translate it to latex (I do have a translator that we can use plus some manual editing).
comment:8 by , 10 years ago
Fixed in r24954 by removing the debug flags setting from the OMShell sessions as the debug flags are for developers and very advanced users only. Added section 1.4 with command line parameters and how to get more information from the compiler.
comment:9 by , 10 years ago
Milestone: | 1.9.2 → 1.9.3 |
---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:10 by , 10 years ago
Milestone: | 1.9.3 → 1.9.2 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:11 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
You would need to add +showErrorMessages