mago icon indicating copy to clipboard operation
mago copied to clipboard

__entrypoint.main() is found

Open andre2007 opened this issue 7 years ago • 1 comments

This sample application cannot be debugged

import std.stdio;

void main(string[] args)
{
	writeln(args);
}

I set a breakpoint on the writeln(args) command but the debugger stops on __entrypoint.main()

image

andre2007 avatar Jun 28 '18 20:06 andre2007

That's the C main function that is automatically generated with D's main. Unfortunately it has debug information that overlaaps with user code (blame the compiler). Press F5 again and it will stop at the writeln.

rainers avatar Jun 29 '18 19:06 rainers