Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

View table in debugger
Started by coronasdk771 Feb 11 2014 01:26 PM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

coronasdk771

[GLOBAL: userInfoPane.html]
coronasdk771
  • Basic
  • PipPip
  • 11 posts
  • Member

Hi. Is it possible to see content of table in debugger? All I get for table variables is something like

 

event = table: 07728390

thanks


 



[TOPIC: post.html]
#2

Perry Clarke

[GLOBAL: userInfoPane.html]
Perry Clarke
  • Corona Staff
  • 308 posts
  • Jedi

Not in the current version.  It's on my list of things to add.

 

One easy way to print tables for debugging is:

 

local json = require "json"
print(json.encode(myTable, { indent=true } ))


[TOPIC: post.html]
#3

coronasdk771

[GLOBAL: userInfoPane.html]
coronasdk771
  • Basic
  • PipPip
  • 11 posts
  • Member

Cool, thanks!




[topic_controls]
[/topic_controls]