spooke2kdotnet Posted March 9, 2004 Posted March 9, 2004 I want to write a program that as you enter a line of coding in the .net enviroment adds a line underneath that display the string,object value or what every vale is inputed above it. So therefore in effect making a lot easier to debug but am unsure how you would do this i know it could be done in vb6 as i have seen program in vb6 that sorts your coding out however i don't know how it was done or even if it is possible in .net. an example is dim t as string t=a 'show t string in msgbox or imediate window any ideas holla me spooke2k Quote
Leaders dynamic_sysop Posted March 9, 2004 Leaders Posted March 9, 2004 you mean you want to do something like this ? ... Dim t As String = "A" MessageBox.Show(t) Quote
spooke2kdotnet Posted March 9, 2004 Author Posted March 9, 2004 yeah but thats not what i was getting at what i was getting at is an automatic code entry that does that with the values entered as string underneath or integer what every is declared and the value they process as they change so you can see where your programs up to and the values the programs using see my point auto entry code after code entered so that as sonn as you assign the string a value that vale is display in the imediate window Quote
*Experts* Nerseus Posted March 9, 2004 *Experts* Posted March 9, 2004 I don't know about "automatically", but you could use: System.Diagnostics.Debug.WriteLine(t); That sends it to the Output window, not the immediate window - good enough for me most of the time. You could also add a Watch, which shows the value of variables or code at runtime. You can also set a breakpoint and, if you have Visual Studio, hover your mouse over variables to see their values. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.