Sunday, August 6, 2017

Debugging Mono outside of MonoDevelop



I've been writing a console application in C# using MonoDevelop. While I can run the application and pass command line arguments to it, i cannot for the life of me figure out how to debug it and pass in arguments.



I've tried using the command line to launch MDB - Instructions Here




However on Ubuntu 11.10 it cannot locate the Debugger



 05:15:53 {master} ~/Projects/SomeProject/bin/Debug$ mdb
No command 'mdb' found, did you mean:


So, where is the mono debugger, and how do I debug command line applications built with mono that depend on arguments?



Support for the 'hard debugger' is no longer included in the runtime, so the mono-debugger package was removed from Debian & Ubuntu. The interface that monodevelop uses is called the soft debugger, and there is the start of a command-line client for that at https://github.com/alexrp/sdb-cli


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...