Skip to content

singlefile apps do not emit file and line info when printing stacktraces #51461

Description

@am11

dotnet/diagnostics#2192 (comment)

e.g. this code:

using System;
class Program
{
    static void Main() => throw new Exception("foo");
}

would yield:

Unhandled exception. System.Exception: foo
   at Program.Main()

instead of what we get with non-singlefile execution:

Unhandled exception. System.Exception: foo
at Program.Main() in /home/am11/projects/app1/Program.cs:line 4

cc @mikem8361

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions