Hendrix000007

Debug snippet free to use

Sep 4th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. -------------------------------------------
  2. --Little snippet to paste whereever you need
  3. -- I used it several places for debuggung in storyboard API, this way I can check different groups
  4. -- and variables for content or if the exist
  5. -- All the variables used here is of course relevant only to my code so this need to be exchanged with your vars
  6. -------------------------------------------
  7.  
  8.             print("@@@@@@@@@@@@@@@@@  DEBUGGING FOR TERMINAL OUTPUT  @@@@@@@@@@@")
  9.             if gameGroup then print("gameGroup children ", gameGroup.numChildren ) end
  10.             if screenGroup then print("ScreenGroup children ", screenGroup.numChildren ) end
  11.             if button then  print("button ", #button) end
  12.             if buttonCover then print("buttonCover ", #buttonCover) end
  13.             if buttonImages then    print("buttonImages ", #buttonImages) end
  14.             if lastButton then  print("lastButton ", #lastButton) end
  15.             if defaultBg then   print("bgImage ", defaultBg.name) end
  16.             print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
Add Comment
Please, Sign In to add comment