Testing simple VB code in design time?

  • Thread starter Thread starter Peter Macej
  • Start date Start date
P

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 said:
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
 
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.
 
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.
 
Back
Top