Want to turn off your debug print statements for your production build?
production build에서는 디버그용 print 구문이 실행되지 않도록 하고 싶으세요?
Add this little block of code to your main.lua:
main.lua 파일에 아래 코드 블럭을 추가하세요.
debugMode = true
cachePrint = print
function print(...)
if debugMode then
cachePrint(unpack(arg))
end
end
Then to turn it off, change "debugMode" to false.
print 구문을 출력하고 싶지 않으시면 간단하게 debugMode를 false로 바꿔주시기만 하면 됩니다.
|
|
|
반응형
'Corona SDK > Corona SDK TIPs' 카테고리의 다른 글
런타임 에러 처리하기 (0) | 2013.03.07 |
---|---|
수요일의 FAQ: 코로나 런타임 에러 관련 (0) | 2013.03.06 |
수요일의 FAQs : 서브 폴더와 서브 파일에 접근하기 (0) | 2013.02.22 |
Corona Tip from Facebook : 스토리보드 scene 을 떠날 때.... (0) | 2013.02.01 |
FAQ: 맥 시뮬레이터 업데이트 내용들 (0) | 2013.01.31 |
FAQ Wednesday : Custom Fonts 사용하기 (0) | 2013.01.18 |
Corona tip: Shuffle it! (0) | 2013.01.10 |
Corona TIP : display.remove()와 object:removeSelf() 의 차이 (0) | 2013.01.10 |
수요일의 FAQ - Local Notification (Android) (0) | 2012.12.07 |
코로나로 MySQL 로부터 JSON Data 받아서 사용하기 (0) | 2012.11.23 |