yanuar, I think you are looking for something similar to what was mentioned here by Rob Miracle, http://developer.coronalabs.com/forum/2013/02/06/some-misc-newbie-type-questions#comment-141918
Here’s what he suggested:
"I wouldn’t go and delete all your print statements. Instead before you deploy live, you could at the top of your main.lua add something like:
[blockcode]print = function() return true end[/blockcode]
Which would basically short-circuit the system’s print statement which would have the effect of turning off your print. I personally use a little more complicated version of this in my apps:
[blockcode]
local debugMode = true
cachePrint = print
function print(…)
if debugMode then
cachePrint(unpack(arg))
end
end
[/blockcode]
And I just have to set the value of debugMode to either true or false."
Hope that helps. [import]uid: 208407 topic_id: 36131 reply_id: 143508[/import]