This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to print Variable in c# or VB ?

savan - Thursday, March 25, 2010 5:47 AM:

How to print variable value in method by c# or VB?

Eg : In java script it will by alert so i want to know in C# or VB at any time in method?

 

plz suggest me  ...as soon as possible ...

 

 

Regards,

Savan



PeterSchroer - Friday, March 26, 2010 9:55 AM:

Savan -   try     

CCO.Utilities.WriteDebug("savan_messages", VariableName)

this will write the value to a server side file named   savan_messages.log,  which will be stored in the folder   ..//innovator/server/temp     I use this technique all the time.    The other useful trick is to write the DOM of an Item to a file for inspection also.    MyItem.dom.save(CCO.Server.MapPath("./ltemp/Savan.xml"))    will put an xml file with the Item's contents into the same folder.

Another technique we used years ago which is really cool...    is to have your server method send you instant messages.    We did some experiments with the JABBER  instance messaging system..    You open a window on your client the Jabber server,  and then in your method,  you also make an API connection to the Jabber server,  to send yourself messages about the run-time status of your Method (like variable values).      Not sure why we stopped shipping the JABBER server with Aras Innovator,  but it might be a licensing problem. 

Challenge to some of the developers out there....   is there an API to  ICQ that can be included in a Method,  so that we can use a standard, hosted messaging service to send messages?    Maybe your Method could be sending Twitter Tweets or ICQ or MSN messages to you ?

Peter