Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...