[Mono-dev] How to stop and debug native code of a method?

Robert Jordan robertj at gmx.net
Tue Jul 12 14:22:50 UTC 2016


On 12.07.2016 12:39, Pin Cheng wrote:
> Hi All,
>
> I am porting mono to a platform,
>
> I wander if I want to trace a method(compiled into native code) how do
>
> You stop the program running when entering into this method? Gdb can
>
> Watch the PC register, but it is very slow, I have wait for tens of minutes.
>
> Is there any efficient way to interrupt some method running?


mono --break namespace.class:methodname  your-assembly.exe

See mono's man page.

Robert




More information about the Mono-devel-list mailing list