473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Testing simple VB code in design time?

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
Mar 3 '06 #1
4 1442
Hi,

http://msdn.microsoft.com/msdnmag/is...MustHaveTools/

Ken
-------------
"Peter Macej" <pe***@vbdocman.com> wrote in message
news:uZ**************@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

Mar 3 '06 #2
"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

Mar 3 '06 #3
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
Mar 3 '06 #4
> 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
Mar 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is...
0
by: Jonathan Allen | last post by:
We have found that our method of testing does not match traditional text-book methodologies. I decided to write a short white paper on it so that I could get your opinions. Does anyone else use...
72
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
44
by: John A. Bailo | last post by:
Dr. Dobbs has a /glowing/ article on Ruby on Rails this month. What do you guys think? Can it replace .net, php and java? And be the Open Source OOP web solution that is not bound to Sun or...
58
by: nw | last post by:
Hi, I have been asked to teach a short course on testing in C++. Until now I have used my own testing classes (which from what I've seen seem similar to the boost unit testing classes)....
5
by: Ben Finney | last post by:
Howdy all, PEP 299 <URL:http://www.python.org/dev/peps/pep-0299details an enhancement for entry points to Python programs: a module attribute (named '__main__') that will be automatically called...
24
by: David | last post by:
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do...
4
by: David | last post by:
Hi list. Do test-driven development or behaviour-driven development advocate how to do higher-level testing than unit testing? types of testing: unit integration system
20
by: earthwormgaz | last post by:
Hello, I'm after doing some C++ unit testing, I'm using CppUnit. I like the look of RudeMocks, but it doesn't work for Solaris/Sparc, so its no good to me sadly. So, I have class A, and it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.