[Mono-list] Command line debugging

Ian Norton inorton at gmail.com
Tue Aug 13 19:59:10 UTC 2013


You can run a program that will listen for monodevelop on a TCP port before
it enters it's main method.

$ mono --debug --debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y,suspend=y
myprogram.exe

That will sit listening on port 12345 for a debugger to attach.

On another host you then do this:

export MONODEVELOP_SDB_TEST=1
monodevelop

And then load up your solution for the thing you want to debug, then use
the  "Custom Command Soft Debugger" under the run menu.


On 10 August 2013 12:51, Matt Calder <mvcalder at gmail.com> wrote:

> We run a mono-based service out of the cloud. The server machines are
> headless, without windowing libraries installed. Is there a good way to
> debug code running under mono from the command line? For the most part we
> rely on mirrored environments that do have Monodevelop capability, but that
> mirroring can be imperfect at times. Thanks,
>
> Matt
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130813/1245cf3e/attachment.html>


More information about the Mono-list mailing list