I stumbled across MONO_ENV_OPTIONS in the 2.8 release notes. I also see it mentioned once in the LLVM docs page, but nowhere else.
This seems like a pretty fundamental feature. Shouldn't it be highlighted somewhere more prominent?
In my case, I was able to set MONO_ENV_OPTIONS="--debug" so I can get filenames and line numbers when running tests under mono using dotnet test (when the test project targets .NET Framework and runs on Linux/macOS).
I found mono --debug in the debugging docs, but couldn't figure out how to get it passed through with dotnet test until I found MONO_ENV_OPTIONS.
I stumbled across
MONO_ENV_OPTIONSin the 2.8 release notes. I also see it mentioned once in the LLVM docs page, but nowhere else.This seems like a pretty fundamental feature. Shouldn't it be highlighted somewhere more prominent?
In my case, I was able to set
MONO_ENV_OPTIONS="--debug"so I can get filenames and line numbers when running tests under mono usingdotnet test(when the test project targets .NET Framework and runs on Linux/macOS).I found
mono --debugin the debugging docs, but couldn't figure out how to get it passed through withdotnet testuntil I foundMONO_ENV_OPTIONS.