Debugging

  • On a desktop platform, all of your println() commands are saved to the file "save/log.txt".  Type "ant logfile" to see it (in v2.22 there's an error in the Windows build; you'll need to manually view the file).
  • The log(String) command write a message to the logfile without saving it on screen.
  • Class SystemMonitor, below, can be used for
SystemMonitor
deferred singleton class : Screen
  • DESCRIPTION
    • The SystemMonitor is a screen that optionally displays information about the texture sheets used by the Image system and the memory usage in general.
  • PROPERTIES
    • texture_sheets_visible : Logical
      • Set this debugging option to true to have the program display the texture sheets it uses. The sheets are 1024x1024 on the IPhone and 512x512 on other systems. They are scaled down to fit the display screen.
    • memory_usage_visible : Logical
      • Set this debugging option to show approximately how much memory your system is using. Does not count executable size. Note that on a desktop system there is a 20 MB fast heap but on a mobile device it's 1 MB.
    • [Inherited Screen properties hidden]
  • METHODS
    • show_all()
      • Shows texture sheets and memory usage.
    • hide_all()
      • Hides texture sheets and memory usage.
    • log_drawing(Logical setting) : native
      • Writes drawing info to the log file on Mac and Windows.
    • [Inherited Screen methods hidden]