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.
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: Tips and Tricks
6 Comments:
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
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
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
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
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
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
Post a Comment
<< Home