I've been searching around the internet - and StackOverflow - for some recommendations on some lightweight .NET debuggers, but so far I haven't had a lot of luck. Some articles/posts are either pretty dated, or otherwise don't exactly suit me needs.
What I'm specifically looking for is a very light-weight .NET debugger that I can wrap into my application, where I can create a "Debug mode" for administrators/developers. Because this application is very specific to the data, and environment it runs in, and features some scripting as well, it would be really useful to allow users the ability to debug their scripts, and in some cases the underlying engine.
In short, the requirements are:
I could use the standard Visual Studio debugger, and use Debugger.Break()
, but ultimately, this fails requirement number 1 of it being lightweight - I need something I can wrap into my application.
What is a C-stand? A C-Stand is a metal stand designed to position lights, silks, flags, backdrops, and other tools on a set. C-Stand is believed to be short for Century Stand because they were used in early cinema to hold sun reflectors that were 100 square known as Centuries.
In film production, a C-stand (or Century stand) is primarily used to position light modifiers, such as silks, nets, or flags, in front of light sources. The stand is constructed of metal and consists of a collapsible base, two riser columns, and a baby pin on top.
Types of light stands The baby stands are the go-to standard of the light stands, they are lightweight and compact and mostly fit small to medium sized lights or accessories. The junior stands are more robust and heavy-duty, designed to hold heavier lighting fixtures equipped with a 28mm stud.
The CLR Managed Debugger (mdbg) Sample should get you started.
What about using the CSharpCodeProvider class? This will at least provide compiling, and I believe will provide debugging info. Although I'm not sure of the detail. Maybe between the CLR mdbg as @Eric recommends and the CodeProvider, you will get what you want.
You should be able to compile stand-alone scripts and debug. Although, it would be impossible to debug the application itself, while it is running - a point I certainly missed while @Hans is sharp enough to point out in his comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With