See this issue in Kestrel.
This is what I do from my OSX environment.
$ ./build.sh -x64 -checked -skiptests
Publish the app you'd like to test as a standalone binary:
$ dotnet publish -f netcoreapp2.1 -r osx-x64 -c Release
Back in coreclr
, copy all files from bin/Product/OSX.x64.Checked
to your standalone publish directory e.g. bin/Release/netcoreapp2.1/osx-x64/publish
.
export COMPlus_JitPrintInlinedMethods=1
export COMPlus_JitDisasm=*
From the publish directory, your standalone binary, probably piping its output to a file:
$ ./corerun myapp.dll
You can also get the jit to only output a certain disassembly e.g. set COMPlus_JitDisasm=System.Generic.*
.