[Mono-dev] Catching NRE in Embedded Mono

Jonathan Chambers joncham at gmail.com
Mon Jan 9 22:14:35 UTC 2012


Jeff,

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.

Thanks,
Jonathan



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.
>
> --
> Jeff
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120109/a959cc06/attachment-0001.html 


More information about the Mono-devel-list mailing list