Re: Single statement execution

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jay B. Harlow [MVP - Outlook] (Jay_Harlow_MVP_at_msn.com)
Date: 08/24/04


Date: Tue, 24 Aug 2004 09:18:41 -0500

Sorawit,
It sounds like you may want to use VSA, unfortunately last I heard VSA was
discontinued and I have not heard of a replacement. VSA = Visual Studio for
Applications.

I'm not sure if VSIP http://msdn.microsoft.com/vstudio/extend/ offers
anything usable for you. As VSIP is more about integrating your code into VS
instead of integrating VS into your app.

I thought MSDN Magazine had an article on using the debugging & profileing
COM based APIs for .NET, however I'm not seeing anything obvious right now.

Hope this helps
Jay

"Sorawit Sharp" <sorawit_sharp@hotmail.com> wrote in message
news:OLzV%236diEHA.1644@tk2msftngp13.phx.gbl...
> My problem description was inaccurate: The user of the app sees something
> similar like scripts.
> More precisely I'm talking about pieces of C# sharp code which the app
> compiles and executes:
>
> using System.CodeDom.Compiler;
>
> ICodeCompiler theCompiler = new
> Microsoft.CSharp.CSharpCodeProvider().CreateCompiler();
> CompilerResults theResults =
> theCompiler.CompileAssemblyFromSource(theCompilerParms, theSourceCode);
> :
> Assembly theAssembly = theResults.CompiledAssembly();
> MethodInfo theMethodInfo = theAssembly.EntryPoint;
> theMethodInfo.Invoke(null, theInvokeParms);
>
> The Invoke() method executes this 'user script'. What I'm looking for is a
> way to execute this code statement by statement.
>
> Thanks for your response.
>
> "Sorawit Sharp" <sorawit_sharp@hotmail.com> wrote in message
> news:OD7U9ddiEHA.3016@tk2msftngp13.phx.gbl...
> > My app executes C# user scripts via dynamic code execution.
> > Is it possible to execute the scripts single step wise like a debugger
?
> >
> >
> >
>
>



Relevant Pages

  • Re: performance Winxp vs Linux
    ... Re: 'low' CPU consumption ... A benchmark app we use executes in a given time on a new Win2K box. ... Long story short - Under XP, drivers from the motherboard driver CD had ...
    (comp.lang.tcl)
  • Re: C++ altering the wrong class members
    ... > An App Class derived from the Application Class ... > In it's constructor Application instalises m_Params values. ... App then alters some ... > executes, m_Params.title changes but the new value is corrupt ...
    (comp.lang.cpp)
  • Re: reading PDAs device ID
    ... the desktop app executes the win CE program (with command line args to ... tell the CE app which function to run) via RAPI CeCreateProcess() function. ...
    (microsoft.public.pocketpc.developer)
  • Re: Stopping a Java Program
    ... I started the App. ... A's method by using the 'java' command. ... A's method executes successfuly, but I think it ... effect on the JVM in which the App is running. ...
    (comp.lang.java.programmer)