Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Light-weight Stand-Alone C# Debugger

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:

  1. Lightweight,
  2. Allows users to set up custom breakpoints,
  3. And finally, allows users to step-through code

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.

like image 835
AlishahNovin Avatar asked Aug 30 '11 15:08

AlishahNovin


People also ask

What is light c-stand?

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.

What is the use of C-stand?

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.

What are the different types of light stands?

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.


2 Answers

The CLR Managed Debugger (mdbg) Sample should get you started.

like image 200
Eric Farr Avatar answered Oct 01 '22 21:10

Eric Farr


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.

like image 37
IAbstract Avatar answered Oct 01 '22 22:10

IAbstract