[Mono-list] [Mono-dev] System.CodeDom.Compiler and Debugging
Vikas N Kumar
vikasnkumar at users.sourceforge.net
Sun Oct 28 18:09:10 EDT 2007
Thanks for the info.
Is there a way for me to use System.Codedom.Compiler and point the
class to the source code of the runtime code that gets compiled. Let's
say that before I compile the code, I save it as a .cs file, and the
application that is compiling the code at runtime knows that the code
is also saved in the .cs file. Can the System.Codedom.Compiler
register this source file as the source code for the class that I am
compiling and thus help the .NET debugger or the Mono debugger to
debug the code that has been written at runtime ?
I hope my question is clear. If not I will explain it again.
On 10/27/07, Andreas Nahr <ClassDevelopment at a-softtech.com> wrote:
> akaik there is no integrated debugger support in any of the class libraries.
> Neither through CodeDom, nor through Reflection.Emit.
> You should be able to attach an external debugger (Mono or .Net) however
> this is surely a non-trivial task.
> -----Ursprüngliche Nachricht-----
> Von: mono-devel-list-bounces at lists.ximian.com
> [mailto:mono-devel-list-bounces at lists.ximian.com] Im Auftrag von Vikas N
> Gesendet: Freitag, 26. Oktober 2007 17:35
> An: mono-devel-list at lists.ximian.com; mono-list at lists.ximian.com
> Betreff: [Mono-dev] System.CodeDom.Compiler and Debugging
> I have written an application in which I write code inside a text box, click
> a button that compiles the code using System.CodeDom.Compiler, loads the
> code into memory and executes it.
> This works fine until there is an error in the code that was written in the
> text box, and I am not able to debug that using either Visual Studio or
> Mono's debugger.
> Do you have any suggestions ? Are there classes that .NET gives that I can
> use in my application itself so that the application itself can debug the
> code in the textbox at runtime ? System.Diagnostics doesn't seem to do that
> Is it possible for me to embed Mono's debugger inside an application and get
> the debugger to debug the code that is typed in at runtime ?
> Any help will be appreciated.
> Thanks and Regards
> Vikas Kumar
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-list