digitalmars.D.bugs - [Issue 3321] New: debug flags
- d-bugmail puremagic.com (27/27) Sep 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (7/7) Sep 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (28/28) Sep 17 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (19/20) Sep 17 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (10/10) Jun 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (15/15) Feb 06 2013 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (12/12) Feb 06 2013 http://d.puremagic.com/issues/show_bug.cgi?id=3321
- d-bugmail puremagic.com (9/9) Feb 06 2013 http://d.puremagic.com/issues/show_bug.cgi?id=3321
http://d.puremagic.com/issues/show_bug.cgi?id=3321 Summary: debug flags Product: D Version: 2.031 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: ellery-newcomer utulsa.edu 20:12:35 PDT --- test.d: debug pragma(msg,"hi!"); void main() {} $ dmd2 test (no output) $ dmd2 -debug test hi! $ dmd2 -debug=1 test hi! $ dmd2 -debug=ellery test (no output) WHAT??????? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3321 20:23:48 PDT --- a quick peek in the source shows that debug <=> debug(1) is this sane behavior? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3321 Ary Borenszweig <ary esperanto.org.ar> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ary esperanto.org.ar PDT --- Yes, that's normal behaviour. And: $ dmd2 -debug=ellery test will print "hi!" if the code is: debug(ellery) pragma(msg,"hi!"); void main() {} I won't close this as invalid because the specification doesn't say exactly this. It says: --- The debug condition is satisfied when the -debug switch is thrown on the compiler. The debug ( Integer ) condition is satisfied when the debug level is >= Integer. The debug ( Identifier ) condition is satisfied when the debug identifier matches Identifier. --- It should say: The debug condition is satisfied when the -debug switch is thrown on the compiler or when a debug level >= 1 is indicated. (or something like that) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 17 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3321 07:44:38 PDT ---Yes, that's normal behaviour.According to whom? The C preprocessor? When I read the spec, I came away with the impression that debug should work like so: debug { stuff } should get compiled if the compiler is given -debug or -debug={something}. Basically, I see it as a boolean. Are we in a debug compile? debug(number) { stuff } should get compiled if the compiler is given -debug=n, where n >= number (and there's nothing that says debug(0) { stuff } will always get compiled) wait, I'm seeing a pattern here 1 -> true, 0 -> false. That sorta makes sense. debug(id) { stuff } should get compiled if the compiler is given -debug=id Yeah, spec needs to be more precise. I would like to see -debug=id => debug_level=1, though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 17 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3321 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jlquinn optonline.net *** Issue 3721 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 12 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3321 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, spec CC| |andrej.mitrovich gmail.com Platform|Other |All Version|2.031 |D2 AssignedTo|nobody puremagic.com |andrej.mitrovich gmail.com OS/Version|Linux |All 17:25:47 PST --- https://github.com/D-Programming-Language/d-programming-language.org/pull/256 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 06 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3321 Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/74ab0d4e6ba28611ebcf2b58187b9a5527f2370b Fixes Issue 3321 - Debug switch is underdocumented. https://github.com/D-Programming-Language/d-programming-language.org/commit/7c316bbe55c6d932b63efafc133f1477cf718edc Issue 3321 - Debug switch is underdocumented. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 06 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3321 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 06 2013