[Issue 19985] New: No debug line info for simple code blocks

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 19 06:22:40 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19985

          Issue ID: 19985
           Summary: No debug line info for simple code blocks
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: symdeb
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

build with -g:

void foo()
{
}

void fun(bool b)
{
    if (b)         // when stepping here, debugger jumps to end of function
        return;    // cannot set breakpoint here
    foo();
}

void main()
{
        fun(true);
}

tested on Windows only, but unlikely to be platform specific.

--


More information about the Digitalmars-d-bugs mailing list