2/24/2007

The print and debug function.

These days I was coding and reviewing some functions developed in EPM in our project. Generally I used to use the print function to print comments in the middle of my function to see what the function was doing. These comments was written in the stdout file ($ATA_DATA_SERVER_LOG\stdout). To use the print function to debug is very poor because you have to write the messages, see it in the file and once you have finished your job, delete or comment all the prints. But Singl.eView offers a better solution to do this. The “debug” function. This function takes the message you put in the argument of the function and write it directly in the stdout or in the expression test window. But the debug function only works if you are working in debug mode otherwise the parser don’t parse the function. This is very good. You can forget your debug messages and you can send it to production environments, knowing that only in debug mode they are going to do something. Have you ever find out a message in the stout file due to a forgotten print in some function?

If you are testing the function in the expression test you can click the debug check and debug your function.

Also exist the debug_on and the debug_off functions. With this you can activate / deactivate the debug mode in the middle of the code of some function.

And if you have a very big stdout file…you can use the switch file to create a new one.

Labels:

6 Comments:

Anonymous Anonymous said...

Hey! This is my first visit to your blog! We are a collection of volunteers and
starting a new initiative in a community in the same niche.
Your blog provided us beneficial information to work
on. You have done a extraordinary job!

Look into my web-site - tumblr.com

15:05  
Anonymous Anonymous said...

What's up, this weekend is pleasant for me, for the reason that this time i am reading this wonderful informative piece of writing here at my house.

my blog; cheap nike air max free shipping

18:53  
Anonymous Anonymous said...

Way cool! Some extremely valid points! I appreciate you writing this post plus the rest of the
site is also very good.

Look at my homepage: http://www.stoneflync.com

02:42  
Anonymous Anonymous said...

Nice post. I used to be checking constantly this blog and I
am inspired! Very useful information specifically the remaining phase :) I maintain such information
much. I was looking for this certain information
for a very long time. Thanks and good luck.

Feel free to visit my weblog: http://chatsuperstars.com/ZelmaThurm

17:26  
Anonymous Anonymous said...

Fantastic beat ! I wish to apprentice while you amend your
web site, how could i subscribe for a blog website?
The account aided me a acceptable deal. I had been a little bit
acquainted of this your broadcast provided bright clear idea

Also visit my blog :: cheap nike air max shoes

02:28  
Anonymous Anonymous said...

It's very easy to find out any matter on net as compared to books, as I found this article at this website.

my weblog nike air max on sale

13:24  

Post a Comment

<< Home