it doesn’t output any log when i use json.encode
in my project ;
VSCode Launch Config
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Corona-Run",
"type": "lua-local",
"request": "launch",
"program": {
"command": "%CORONA_PATH%/Corona Simulator.exe"
},
"args": [
"-no-console",
"main.lua"
]
}
]
}
main.lua
json = require("json")
print("====== before encode")
local sRet = json.encode({a = 1})
print("====== encode result:", sRet)
print("====== after encode")
local iCount = 1
timer.performWithDelay(1000, function()
print(iCount)
iCount = iCount + 1
end, -1)