How to Dump a .NET Core Application on Linux

后端 未结 4 1658
余生分开走
余生分开走 2021-01-07 19:12

I have a .NET application that I have ported to .NET Core. I am testing it on Ubuntu 14.04.

I am trying to figure out how to get a .dmp file or the Linux equivalent

4条回答
  •  长发绾君心
    2021-01-07 19:37

    I can get core dump by Using Environment.FailFast("core dump") in my C# code. Maybe you need to set core dump size and location with ulimit -c unlimited and echo coredump > /proc/sys/kernel/core_pattern first.

    [xxx/tmp]$ ls core*

    core.dotnet.10470

提交回复
热议问题