Hi Bill,
You're right, +debug should work like +d. +d is handled as a special
case though, and it seems like we forgot that +debug should also be
handled in the same way. I made the flag handling a bit more robust in
r16787, so this should now be handled correctly. I also added +h as a
synonym for +help for the sake of consistency.
Cheers,
Per
On 2013-08-08 20:32, Bill Janssen wrote:
Lennart Ochel <lennart.oc...@fh-bielefeld.de> wrote:
Hej,
anyway it is +d=<comma-seperated list of flags> instead of
+debug=<comma-seperated list of flags>.
Yep, that's the problem, all right.
However, the help text for omc says this:
+d, +debug Sets debug flags. Use +help=debug to see available
flags.
which clearly implies that +debug will work as well as +d.
Bill
Kind Regards,
Lennart
-----Ursprüngliche Nachricht-----
Von: owner-openmodelicainter...@ida.liu.se
[mailto:owner-openmodelicainter...@ida.liu.se] Im Auftrag von Bill Janssen
Gesendet: Donnerstag, 8. August 2013 19:29
An: openmodelicainterest@ida.liu.se
Cc: jans...@parc.com
Betreff: +debug flags working?
When I say,
omc +help=debug
I see this:
The debug flag takes a comma-separated list of flags which are used by the
compiler for debugging. Flags prefixed with - will be disabled.
So I try it:
omc +debug=solveinitialsystem,dumpinitialsystem rlc_series.mo
ModelicaServices Modelica
and get
Error: Invalid type of flag debug, expected a string but got a list of
values.
Error: Unknown option debug.
Or I try this:
omc +debug="solveinitialsystem,dumpinitialsystem" rlc_series.mo
ModelicaServices Modelica
and get this:
Error: Invalid type of flag debug, expected a string but got a list of
values.
Error: Unknown option debug.
What's the right way to do this?
Bill