[Mono-dev] Catching NRE in Embedded Mono
joncham at gmail.com
Mon Jan 9 22:14:35 UTC 2012
Mono uses getenv to access the MONO_DEBUG environment variable. Make sure
you set it with _putenv rather than SetEnvironmentVariable, as they are two
blocks of environment variables that are maintained separately.
On Mon, Jan 9, 2012 at 3:49 PM, Jeff Ward <jeff at fuzzybinary.com> wrote:
> Is there a point this has to be set by, or a way I can push this into mono
>> from code (e.g. an option I can set on the jitter?). Setting the
>> environment variable in code (even before invoking mono_jit_init_version)
>> did't work. I saw somewhere that this is available as a --debug option.
>> Can I pass it to mono_jit_parse_options somehow?
> To answer at least this portion of my own question, passing
> --soft-breakpoints to mono_jit_parse_options seemed to work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list