Home All Groups Group Topic Archive Search About

Testing simple VB code in design time?

Author
3 Mar 2006 11:16 AM
Peter Macej
I often need to test very simple code while I'm writing the program. And
I don't want to compile my whole application just to debug one line of
code. For example I want to see what "ABCD".replace("B", "X") returns.

I'm almost sure I saw an add-in that does this but I cannot find it
anywhere. It works similarly as Immediate window during debug time. It
popped the window where you can write VB expression and it returned the
result.

Do you know such add-in or macro (before I write my own)?

Thank you


--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code

Author
3 Mar 2006 12:07 PM
Ken Tucker [MVP]
Hi,

http://msdn.microsoft.com/msdnmag/issues/04/07/MustHaveTools/

Ken
-------------
Show quoteHide quote
"Peter Macej" <pe***@vbdocman.com> wrote in message
news:uZ88kPrPGHA.3888@TK2MSFTNGP12.phx.gbl...
>I often need to test very simple code while I'm writing the program. And I
>don't want to compile my whole application just to debug one line of code.
>For example I want to see what "ABCD".replace("B", "X") returns.
>
> I'm almost sure I saw an add-in that does this but I cannot find it
> anywhere. It works similarly as Immediate window during debug time. It
> popped the window where you can write VB expression and it returned the
> result.
>
> Do you know such add-in or macro (before I write my own)?
>
> Thank you
>
>
> --
> Peter Macej
> Helixoft - http://www.vbdocman.com
> VBdocman - Automatic generator of technical documentation for VB, VB .NET
> and ASP .NET code
Author
3 Mar 2006 1:31 PM
Peter Macej
Thanks,

Snippet Compiler is what I was looking for. It is not VS add-in but I
defined it as external tool and put it on the VS toolbar.

--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Author
3 Mar 2006 12:24 PM
Armin Zingler
Show quote Hide quote
"Peter Macej" <pe***@vbdocman.com> schrieb
> I often need to test very simple code while I'm writing the program.
> And I don't want to compile my whole application just to debug one
> line of code. For example I want to see what "ABCD".replace("B",
> "X") returns.
>
> I'm almost sure I saw an add-in that does this but I cannot find it
> anywhere. It works similarly as Immediate window during debug time.
> It popped the window where you can write VB expression and it
> returned the result.
>
> Do you know such add-in or macro (before I write my own)?
>
> Thank you


Start a new instance with a new project, run it, go into break mode. There
you can execute the statement.


Armin
Author
3 Mar 2006 1:33 PM
Peter Macej
> Start a new instance with a new project, run it, go into break mode. There
> you can execute the statement.

This is what I wanted to avoid - debug current session or open another
VS instance.



--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code