Debugger error: unexpected response 'do local _=
This has started to happen in last month quite often, especially if there is a long pause before I continue from the breakpoint in deeper debugging sessions. I'm using latest git ZeroBrane in OSX 10.13.4 with luajit latest 64 bit garbage collect -version.
Debugger error: unexpected response 'do local _={"function() --[[..skipped..]] end"};return _;end200 OK 60'
Debugging session completed (traced 11 instructions).
...._;end200 OK 60
@stuta, it seems like one message got somehow merged with the next one. Not sure how this may happen, as the reads are generally waiting for acknowledgement, so no responses should be merged. Can you try to catch it with debugger.verbose=true setting and include the entire debugger output?
Also, do you set breakpoints dynamically while the application is running?
Yes, I do set and remove breakpoints dynamically quite often. I did set debugger.verbose=true to user.lua. I'll report back when this happens next time.
I have't been able to get errors with debugger.verbose=true, but I also have been doing simpler debug session. But whe I didn't have verbose true I got this error.
Debugger error: unexpected response '[string "return lf.table_relation[linkKey] -- {comment..."]:1: attempt to index global 'lf' (a nil value)200 OK'
Variable 'lf' was on watch screen and it was not nil in that file. It was a file -level local variable. I never use global variables.
Yes, it would have been interesting to see the debugger output/commands on this one, as I see the response added to that command as well.
Here is one crash. I have longer log If you need it.
[192.168.100.5:55506] Debugger sent (command): eval parameter -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{action = "update", end_date = "2018-05-30", end_date2 = "2018-05-31", load_group = {"SAH", "BW1"}, queryJsonName = "query/manager/product/product_work/actual/productivity_report/time_period.json", query_name = "", query_type = "time_period", show_sql = false, start_date = "2018-05-30"}
[192.168.100.5:55506] Debugger received (file, line, err): {action = "update", end_date = "2018-05-30", end_date2 = "2018-05-31", load_group = {"SAH", "BW1"}, queryJsonName = "query/manager/product/product_work/actual/productivity_report/time_period.json", query_name = "", query_type = "time_period", show_sql = false, start_date = "2018-05-30"} table: 0x06729b08 nil
[192.168.100.5:55506] Debugger sent (command): step
Paused at file lib/db/dqjson.lua line 131
[192.168.100.5:55506] Debugger received (file, line, err): lib/db/dqjson.lua 131 nil
[192.168.100.5:55506] Debugger sent (command): eval fld -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:55506] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/lib/db/dqjson.lua 227
[192.168.100.5:55506] Debugger received (file, line, err): lib/db/dqjson.lua 227 nil
[192.168.100.5:55506] Debugger received (file, line, err): nil table: 0x06722c68 nil
[192.168.100.5:55506] Debugger sent (command): eval rec2 -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:55506] Debugger received (file, line, err): nil nil nil
[192.168.100.5:55506] Debugger sent (command): over
Unknown error
[192.168.100.5:55506] Debugger received (file, line, err): nil nil Debugger error: unexpected response 'do local _={};return _;end200 OK'
Debugger error: unexpected response 'do local _={};return _;end200 OK'
Debugging session completed (traced 27 instructions).
Watch at the debugger crash:

This took several hours of debugging to happen, but it did not happen until I did go to really deep level of calls. Debugger went ok to function dqjson.queryJson(), but it crashed when I stepped over first line qjson.loadLibs().
function dqjson.queryJson(queryTbl, parameterTbl, continue) -- continue == "and", "or", "in", ?
dqjson.loadLibs()
This time it says "Debugging session completed" but I have to stop debug with stop -button.
[192.168.100.5:63309] Debugger sent (command): eval linkRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63309] Debugger sent (command): adelb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 198
[192.168.100.5:63309] Debugger received (file, line, err): lib/db/dschemafld.lua 198 nil
[192.168.100.5:63309] Debugger received (file, line, err): nil table: 0x097661d0 nil
[192.168.100.5:63309] Debugger sent (command): over
[192.168.100.5:63309] Debugger received (file, line, err): nil nil nil
Debugging session completed (traced 5 instructions).

Given the output it does seem to be related to asynchronous breakpoints (as shown by adelb command). You see two commands and two responses going back, which I wouldn't expect to go back for the async breakpoint request. I suspect this is something that also contributes to other errors you shown in this thread (with 200 OK appended to some results). I'll have to check async breakpoint logic.
Did you delete the breakpoint after sending a watch request?
I was adding and deleting breakpoints during debug. I get more errors now with deeper code .
[192.168.100.5:63556] Debugger sent (command): eval defaultLinkRec -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{default_link = true, link_type = "prevent delete", linked_field = "co.company_id", linked_rec = {constraint = {"primary key", "unique"}, external = {["4d/customer"] = {constraint = {"unique"}, field = "co_company_id", field_length = 24, field_name = "company_id", field_number = 1, field_type = "varchar"}}}}
[192.168.100.5:63556] Debugger received (file, line, err): {default_link = true, link_type = "prevent delete", linked_field = "co.company_id", linked_rec = {constraint = {"primary key", "unique"}, external = {["4d/customer"] = {constraint = {"unique"}, field = "co_company_id", field_length = 24, field_name = "company_id", field_number = 1, field_type = "varchar"}}}} table: 0x0d82e298 nil
[192.168.100.5:63556] Debugger sent (command): over
Unknown error
[192.168.100.5:63556] Debugger received (file, line, err): nil nil Debugger error: unexpected response 'do local _={"{default_link = true, link_type = \"prevent delete\", linked_field = \"co.company_id\", linked_rec = {constraint = {\"primary key\", \"unique\"}, external = {[\"4d/customer\"] = {constraint = {\"unique\"}, field = \"co_company_id\", field_length = 24, field_name = \"company_id\", field_number = 1, field_type = \"varchar\"}}}}"};return _;end200 OK'
Debugger error: unexpected response 'do local _={"{default_link = true, link_type = \"prevent delete\", linked_field = \"co.company_id\", linked_rec = {constraint = {\"primary key\", \"unique\"}, external = {[\"4d/customer\"] = {constraint = {\"unique\"}, field = \"co_company_id\", field_length = 24, field_name = \"company_id\", field_number = 1, field_type = \"varchar\"}}}}"};return _;end200 OK'
Debugging session completed (traced 4 instructions).
---
[192.168.100.5:63471] Debugger sent (command): delb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 222
[192.168.100.5:63471] Debugger received (file, line, err): lib/db/dschemafld.lua 222 nil
[192.168.100.5:63471] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 222
[192.168.100.5:63471] Debugger received (file, line, err): lib/db/dschemafld.lua 222 nil
[192.168.100.5:63471] Debugger sent (command): run
[192.168.100.5:63471] Debugger received (file, line, err): nil nil nil
Debugging session completed (traced 2 instructions).
---
[192.168.100.5:63374] Debugger sent (command): eval extRec -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{field = "po_supplier_id", field_length = 24, field_name = "supplier_id", field_number = 2, field_type = "varchar", foreign_key = {{default_link = true, link_type = "", linked_field = "su_supplier_id", linked_record_type = "supplier", linked_table = "supplier", linking_record_type = "purchase"}}}
[192.168.100.5:63374] Debugger received (file, line, err): {field = "po_supplier_id", field_length = 24, field_name = "supplier_id", field_number = 2, field_type = "varchar", foreign_key = {{default_link = true, link_type = "", linked_field = "su_supplier_id", linked_record_type = "supplier", linked_table = "supplier", linking_record_type = "purchase"}}} table: 0x0dad2a08 nil
[192.168.100.5:63374] Debugger sent (command): delb /Users/pasi/ma-git/ma-server/source/lib/db/dschemasql.lua 123
[192.168.100.5:63374] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/lib/db/dschemasql.lua 123
[192.168.100.5:63374] Debugger received (file, line, err): lib/db/dschemasql.lua 123 nil
[192.168.100.5:63374] Debugger received (file, line, err): lib/db/dschemasql.lua 123 nil
[192.168.100.5:63374] Debugger sent (command): delb /Users/pasi/ma-git/ma-server/source/lib/db/dschemasql.lua 121
[192.168.100.5:63374] Debugger received (file, line, err): lib/db/dschemasql.lua 121 nil
[192.168.100.5:63374] Debugger sent (command): delb /Users/pasi/ma-git/ma-server/source/lib/db/dschemasql.lua 123
[192.168.100.5:63374] Debugger received (file, line, err): lib/db/dschemasql.lua 123 nil
[192.168.100.5:63374] Debugger sent (command): over
[192.168.100.5:63374] Debugger received (file, line, err): nil nil nil
Debugging session completed (traced 5 instructions).
I see asetb commands in some traces, but not in all of them. Can you include full traces when you get an error like this? Also, I'll have to add timestamps to make things a bit more clear...
I will come back in 2-3 hours and I will pull a new version before I start debugging again.
I won't have the changes available until some time later today or tomorrow, but timestamps are not critical; I'm mostly interested in the complete log to see if it correlates with async breakpoints or if there is something else at play.
Crash without debug.
Debugger error: unexpected response '[string "return prf.value -- {comment = false, maxleng..."]:1: attempt to index global 'prf' (a nil value)200 OK'
Debugging session completed (traced 2 instructions).
Crash with debug. I think I closed the file being debugged, but I'm not sure if debugger crashed before or after the close.
Program starting as '"/Users/pasi/ma-git/ma-server/bin/bin_osx_x64/lj64gc" -e "io.stdout:setvbuf('no')" "/var/folders/w8/fk84yg294h9gbd804s42zn640000gn/T/.ZsnxMy"'.
Program 'lj64gc' started in '/Users/pasi/ma-git/ma-server/source' (pid: 83739).
[192.168.100.5:62596] Debugger sent (command): basedir /Users/pasi/ma-git/ma-server/source/
New base directory is /Users/pasi/ma-git/ma-server/source/
[192.168.100.5:62596] Debugger received (file, line, err): nil nil nil
[192.168.100.5:62596] Debugger sent (command): delallb
[192.168.100.5:62596] Debugger received (file, line, err): nil nil nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/qry_test.lua 35
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/qry_test.lua 35 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/qry_test.lua 42
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/qry_test.lua 42 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/qry_test.lua 108
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/qry_test.lua 108 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 83
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 83 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 87
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 87 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 308
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 308 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 309
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 309 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 377
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 377 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 438
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 438 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 444
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 444 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 476
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 476 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 161
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 161 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 163
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 163 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 168
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 168 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 173
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 173 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 300
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 300 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 343
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 343 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 678
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 678 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 755
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 755 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 784
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 784 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 862
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 862 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 904
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 904 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsql.lua 910
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsql.lua 910 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/tool/create_all_link_chains.lua 55
[192.168.100.5:62596] Debugger received (file, line, err): tool/create_all_link_chains.lua 55 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/tool/create_all_link_chains.lua 73
[192.168.100.5:62596] Debugger received (file, line, err): tool/create_all_link_chains.lua 73 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/tool/create_all_link_chains.lua 74
[192.168.100.5:62596] Debugger received (file, line, err): tool/create_all_link_chains.lua 74 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 130
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dschemafld.lua 130 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 371
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dschemafld.lua 371 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 390
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dschemafld.lua 390 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 403
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dschemafld.lua 403 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 542
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dschemafld.lua 542 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dschemafld.lua 567
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dschemafld.lua 567 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dconn.lua 170
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dconn.lua 170 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/dschemasql_test.lua 46
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dschemasql_test.lua 46 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/dschemasql_test.lua 65
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dschemasql_test.lua 65 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/dschemasql_test.lua 158
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dschemasql_test.lua 158 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/dschemasql_test.lua 217
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dschemasql_test.lua 217 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/auth.lua 62
[192.168.100.5:62596] Debugger received (file, line, err): lib/auth.lua 62 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/auth.lua 198
[192.168.100.5:62596] Debugger received (file, line, err): lib/auth.lua 198 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/manager/worker/auth_worker.lua 342
[192.168.100.5:62596] Debugger received (file, line, err): manager/worker/auth_worker.lua 342 nil
[192.168.100.5:62596] Debugger sent (command): load /Users/pasi/ma-git/ma-server/source/manager/ma_server.lua
[192.168.100.5:62596] Debugger received (file, line, err): nil nil nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{nil, "manager/ma_server.lua", 0, 15, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06934538 nil nil
Debugging session started in '/Users/pasi/ma-git/ma-server/source/'.
[192.168.100.5:62596] Debugger sent (command): run
Paused at file lib/auth.lua line 62
[192.168.100.5:62596] Debugger received (file, line, err): lib/auth.lua 62 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06b5f7d8 nil nil
[192.168.100.5:62596] Debugger sent (command): step
Paused at file lib/db/dsave.lua line 51
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 51 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 51, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06c886a0 nil nil
[192.168.100.5:62596] Debugger sent (command): over
Paused at file lib/db/dsave.lua line 52
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 52 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 52, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06958010 nil nil
[192.168.100.5:62596] Debugger sent (command): over
Paused at file lib/db/dsave.lua line 53
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 53 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 53, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06732860 nil nil
[192.168.100.5:62596] Debugger sent (command): over
Paused at file lib/db/dsave.lua line 53
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 53 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 53, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06684760 nil nil
[192.168.100.5:62596] Debugger sent (command): over
Paused at file lib/db/dsave.lua line 55
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 55 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 55, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06d08008 nil nil
[192.168.100.5:62596] Debugger sent (command): over
Paused at file lib/db/dsave.lua line 59
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 59 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 59, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x0674c6a0 nil nil
[192.168.100.5:62596] Debugger sent (command): over
Paused at file lib/db/dsave.lua line 60
[192.168.100.5:62596] Debugger received (file, line, err): lib/db/dsave.lua 60 nil
[192.168.100.5:62596] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 60, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "field", "lib/auth.lua"}
{"func", "manager/worker/auth_worker.lua", 306, 399, "Lua", "local", "manager/worker/auth_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62596] Debugger received (file, line, err): table: 0x06c61f40 nil nil
[192.168.100.5:62596] Debugger sent (command): eval option.table_prefix -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62596] Debugger received (file, line, err): nil table: 0x06961ff0 nil
[192.168.100.5:62596] Debugger sent (command): eval option.table_prefix -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62596] Debugger received (file, line, err): nil table: 0x067e93e0 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/dsave_test.lua 64
[192.168.100.5:62596] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/test/lib/db/dsave_test.lua 91
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dsave_test.lua 91 nil
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dsave_test.lua 64 nil
[192.168.100.5:62596] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/test/lib/db/dsave_test.lua 79
[192.168.100.5:62596] Debugger received (file, line, err): test/lib/db/dsave_test.lua 79 nil
[192.168.100.5:62596] Debugger sent (command): eval data.table_prefix -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62596] Debugger received (file, line, err): nil nil nil
[192.168.100.5:62596] Debugger sent (command): over
Unknown error
[192.168.100.5:62596] Debugger received (file, line, err): nil nil Debugger error: unexpected response '[string "return data.table_prefix -- {comment = false,..."]:1: attempt to index global 'data' (a nil value)200 OK'
Debugger error: unexpected response '[string "return data.table_prefix -- {comment = false,..."]:1: attempt to index global 'data' (a nil value)200 OK'
Debugging session completed (traced 8 instructions).
This is really long, I have longer versio if needed.
[192.168.100.5:62774] Debugger sent (command): run
Paused at file lib/db/dsave.lua line 219
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dsave.lua 219 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveRecord", "lib/db/dsave.lua", 137, 219, "Lua", "upvalue", "lib/db/dsave.lua"}
{"fun", "lib/db/dsave.lua", 296, 302, "Lua", "local", "lib/db/dsave.lua"}
{"call_if_not_empty", "lib/fn.lua", 36, 41, "Lua", "upvalue", "lib/fn.lua"}
{"each", "lib/fn.lua", 196, 198, "Lua", "method", "lib/fn.lua"}
{"saveTable", "lib/db/dsave.lua", 293, 296, "Lua", "local", "lib/db/dsave.lua"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 328, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 343, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0a8dbb00 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06d09f90 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{ses_modify_id = "c710dff2-7f41-4d4e-cd1f-902b343620e7", ses_modify_time = 1528668215.587199, ses_modify_user = "pasi", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_valid_until = "2018-06-10 23:03:37"}
[192.168.100.5:62774] Debugger received (file, line, err): {ses_modify_id = "c710dff2-7f41-4d4e-cd1f-902b343620e7", ses_modify_time = 1528668215.587199, ses_modify_user = "pasi", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_valid_until = "2018-06-10 23:03:37"} table: 0x0e94d318 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0bb91740 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06cfd280 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval tblName -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"session"
[192.168.100.5:62774] Debugger received (file, line, err): "session" table: 0x0bde8d80 nil
[192.168.100.5:62774] Debugger sent (command): eval record_type -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06d66b48 nil
[192.168.100.5:62774] Debugger sent (command): eval option -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{option = "no-cache", table_prefix = "ses"}
[192.168.100.5:62774] Debugger received (file, line, err): {option = "no-cache", table_prefix = "ses"} table: 0x0adc8f80 nil
[192.168.100.5:62774] Debugger sent (command): eval tblName -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"session"
[192.168.100.5:62774] Debugger received (file, line, err): "session" table: 0x069a4c90 nil
[192.168.100.5:62774] Debugger sent (command): delb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 219
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dsave.lua 219 nil
[192.168.100.5:62774] Debugger sent (command): setb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 219
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dsave.lua 219 nil
[192.168.100.5:62774] Debugger sent (command): run
Paused at file lib/auth.lua line 273
[192.168.100.5:62774] Debugger received (file, line, err): lib/auth.lua 273 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
call: 5, poll: 34, fd count=3 - 2018-06-10 22:03:48 {"sessionRec", "lib/auth.lua", 267, 273, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0b03c698 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0699fc98 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0e55aca0 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0aa4aeb0 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0bb1e3b0 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"8545f448-5c3d-d4df-b9d4-34fa1b4eddef"
[192.168.100.5:62774] Debugger received (file, line, err): "8545f448-5c3d-d4df-b9d4-34fa1b4eddef" table: 0x0c415588 nil
[192.168.100.5:62774] Debugger sent (command): over
Paused at file lib/auth.lua line 274
[192.168.100.5:62774] Debugger received (file, line, err): lib/auth.lua 274 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"sessionRec", "lib/auth.lua", 267, 274, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0aa75a48 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06727900 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0c403dc0 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0a840860 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{{ses_create_time = "2018-06-10 22:01:59+03", ses_json_data = "{}", ses_organization_id = "demo-fi_demo-0", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_user_id = "pasi", ses_valid_until = "2018-06-10 23:03:37+03"}}
[192.168.100.5:62774] Debugger received (file, line, err): {{ses_create_time = "2018-06-10 22:01:59+03", ses_json_data = "{}", ses_organization_id = "demo-fi_demo-0", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_user_id = "pasi", ses_valid_until = "2018-06-10 23:03:37+03"}} table: 0x06848730 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"8545f448-5c3d-d4df-b9d4-34fa1b4eddef"
[192.168.100.5:62774] Debugger received (file, line, err): "8545f448-5c3d-d4df-b9d4-34fa1b4eddef" table: 0x068b8fa0 nil
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{{ses_create_time = "2018-06-10 22:01:59+03", ses_json_data = "{}", ses_organization_id = "demo-fi_demo-0", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_user_id = "pasi", ses_valid_until = "2018-06-10 23:03:37+03"}}
[192.168.100.5:62774] Debugger received (file, line, err): {{ses_create_time = "2018-06-10 22:01:59+03", ses_json_data = "{}", ses_organization_id = "demo-fi_demo-0", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_user_id = "pasi", ses_valid_until = "2018-06-10 23:03:37+03"}} table: 0x0b053440 nil
[192.168.100.5:62774] Debugger sent (command): run
Paused at file lib/auth.lua line 274
[192.168.100.5:62774] Debugger received (file, line, err): lib/auth.lua 274 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"sessionRec", "lib/auth.lua", 267, 274, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0aa3cc88 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0be1f870 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0bb42ad0 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0b016bd8 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{{ses_create_time = "2018-06-10 22:01:59+03", ses_json_data = "{}", ses_organization_id = "demo-fi_demo-0", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_user_id = "pasi", ses_valid_until = "2018-06-10 23:03:37+03"}}
[192.168.100.5:62774] Debugger received (file, line, err): {{ses_create_time = "2018-06-10 22:01:59+03", ses_json_data = "{}", ses_organization_id = "demo-fi_demo-0", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_user_id = "pasi", ses_valid_until = "2018-06-10 23:03:37+03"}} table: 0x0df4cf90 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"8545f448-5c3d-d4df-b9d4-34fa1b4eddef"
[192.168.100.5:62774] Debugger received (file, line, err): "8545f448-5c3d-d4df-b9d4-34fa1b4eddef" table: 0x0bc6f778 nil
[192.168.100.5:62774] Debugger sent (command): run
Paused at file lib/db/dsave.lua line 219
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dsave.lua 219 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"saveRecord", "lib/db/dsave.lua", 137, 219, "Lua", "upvalue", "lib/db/dsave.lua"}
{"fun", "lib/db/dsave.lua", 296, 302, "Lua", "local", "lib/db/dsave.lua"}
{"call_if_not_empty", "lib/fn.lua", 36, 41, "Lua", "upvalue", "lib/fn.lua"}
{"each", "lib/fn.lua", 196, 198, "Lua", "method", "lib/fn.lua"}
{"saveTable", "lib/db/dsave.lua", 293, 296, "Lua", "local", "lib/db/dsave.lua"}
{"saveToDatabase", "lib/db/dsave.lua", 35, 328, "Lua", "field", "lib/db/dsave.lua"}
{"saveRecord", "lib/auth.lua", 58, 62, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 343, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0bf67cc8 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0694f7e0 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{ses_modify_id = "42699449-04b8-4ffd-cf12-902b343620e7", ses_modify_time = 1528668260.164302, ses_modify_user = "pasi", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_valid_until = "2018-06-10 23:04:22"}
[192.168.100.5:62774] Debugger received (file, line, err): {ses_modify_id = "42699449-04b8-4ffd-cf12-902b343620e7", ses_modify_time = 1528668260.164302, ses_modify_user = "pasi", ses_record_id = "3aedaf95-d229-4fd8-cf3f-902b343620e7", ses_session_id = "8545f448-5c3d-d4df-b9d4-34fa1b4eddef", ses_valid_until = "2018-06-10 23:04:22"} table: 0x06cd1bb8 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06c3f090 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0b017548 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval tblName -- {comment = false, maxlength = 256, maxlevel = false, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"session"
[192.168.100.5:62774] Debugger received (file, line, err): "session" table: 0x068ed7e0 nil
[192.168.100.5:62774] Debugger sent (command): delb /Users/pasi/ma-git/ma-server/source/lib/db/dsave.lua 219
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dsave.lua 219 nil
[192.168.100.5:62774] Debugger sent (command): run
Paused at file lib/db/dqjson.lua line 161
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dqjson.lua 161 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"queryJson", "lib/db/dqjson.lua", 130, 161, "Lua", "field", "lib/db/dqjson.lua"}
{"queryJson", "lib/qry.lua", 39, 142, "Lua", "field", "lib/qry.lua"}
{"func", "manager/worker/query_worker.lua", 52, 53, "Lua", "local", "manager/worker/query_worker.lua"}
{"jsonValue", "lib/rest.lua", 321, 382, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x06cfcbb0 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x069a8690 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06cd7e90 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x068aa700 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{query_table = true, record_type = {"purchase"}, table = "order_row"}
[192.168.100.5:62774] Debugger received (file, line, err): {query_table = true, record_type = {"purchase"}, table = "order_row"} table: 0x068c2040 nil
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0bf13ab0 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:62774] Debugger sent (command): run
[192.168.100.5:62774] Debugger received (file, line, err): lib/auth.lua 273 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
call: 6, poll: 42, fd count=3 - 2018-06-10 22:04:46 {"sessionRec", "lib/auth.lua", 267, 273, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0bce6940 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x06b50f90 nil
[192.168.100.5:62774] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x068b91c8 nil
[192.168.100.5:62774] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0be2fc00 nil
[192.168.100.5:62774] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:62774] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil table: 0x0af03528 nil
[192.168.100.5:62774] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"8545f448-5c3d-d4df-b9d4-34fa1b4eddef"
[192.168.100.5:62774] Debugger received (file, line, err): "8545f448-5c3d-d4df-b9d4-34fa1b4eddef" table: 0x0be41d88 nil
[192.168.100.5:62774] Debugger sent (command): step
Paused at file lib/db/dload.lua line 288
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dload.lua 288 nil
[192.168.100.5:62774] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/lib/db/dload.lua 394
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dload.lua 394 nil
[192.168.100.5:62774] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/lib/db/dload.lua 498
[192.168.100.5:62774] Debugger received (file, line, err): lib/db/dload.lua 498 nil
{"selectionToRecordTable", "lib/db/dload.lua", 287, 288, "Lua", "field", "lib/db/dload.lua"}
{"sessionRec", "lib/auth.lua", 267, 273, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:62774] Debugger received (file, line, err): table: 0x0af06a60 nil nil
[192.168.100.5:62774] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:62774] Debugger received (file, line, err): nil nil nil
[192.168.100.5:62774] Debugger sent (command): step
[192.168.100.5:62774] Debugger received (file, line, err): nil nil nil
Debugging session completed (traced 19 instructions).
Longer version exists.
Paused at file lib/db/dsql.lua line 192
[192.168.100.5:63008] Debugger received (file, line, err): lib/db/dsql.lua 192 nil
[192.168.100.5:63008] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"setConnection", "lib/db/dsql.lua", 178, 192, "Lua", "field", "lib/db/dsql.lua"}
{"setQuery", "lib/db/dsql.lua", 122, 126, "Lua", "field", "lib/db/dsql.lua"}
{"query", "lib/db/dqry.lua", 197, 199, "Lua", "field", "lib/db/dqry.lua"}
{"sessionRec", "lib/auth.lua", 267, 271, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:63008] Debugger received (file, line, err): table: 0x065ce510 nil nil
[192.168.100.5:63008] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x069519f8 nil
[192.168.100.5:63008] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0c400ca8 nil
[192.168.100.5:63008] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x06a93830 nil
[192.168.100.5:63008] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0c4e0128 nil
[192.168.100.5:63008] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0c433778 nil
[192.168.100.5:63008] Debugger sent (command): eval tblRec.table -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
"session"
[192.168.100.5:63008] Debugger received (file, line, err): "session" table: 0x0692d948 nil
[192.168.100.5:63008] Debugger sent (command): eval loc.logicalConnection -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0bde1ca8 nil
[192.168.100.5:63008] Debugger sent (command): eval tableName -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x069354c0 nil
[192.168.100.5:63008] Debugger sent (command): eval currentAuthTbl.organization_id -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return currentAuthTbl.organization_id -- {com..."]:1: attempt to index global 'currentAuthTbl' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return currentAuthTbl.organization_id -- {com..."]:1: attempt to index global 'currentAuthTbl' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval organizationId -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0694a348 nil
[192.168.100.5:63008] Debugger sent (command): out
Paused at file lib/db/dsql.lua line 127
[192.168.100.5:63008] Debugger received (file, line, err): lib/db/dsql.lua 127 nil
[192.168.100.5:63008] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
{"setQuery", "lib/db/dsql.lua", 122, 127, "Lua", "field", "lib/db/dsql.lua"}
{"query", "lib/db/dqry.lua", 197, 199, "Lua", "field", "lib/db/dqry.lua"}
{"sessionRec", "lib/auth.lua", 267, 271, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:63008] Debugger received (file, line, err): table: 0x0b0be1b8 nil nil
[192.168.100.5:63008] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0bff16f8 nil
[192.168.100.5:63008] Debugger sent (command): eval rec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x069b1ff0 nil
[192.168.100.5:63008] Debugger sent (command): eval sequenceArr -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0bff3d10 nil
[192.168.100.5:63008] Debugger sent (command): eval queryTbl.table[1] -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return queryTbl.table[1] -- {comment = false,..."]:1: attempt to index global 'queryTbl' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval sel -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x097c1a48 nil
[192.168.100.5:63008] Debugger sent (command): eval param.auth.auth_token -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return param.auth.auth_token -- {comment = fa..."]:1: attempt to index global 'param' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0bb18150 nil
[192.168.100.5:63008] Debugger sent (command): eval tblRec.table -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return tblRec.table -- {comment = false, maxl..."]:1: attempt to index global 'tblRec' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return tblRec.table -- {comment = false, maxl..."]:1: attempt to index global 'tblRec' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval loc.logicalConnection -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return loc.logicalConnection -- {comment = fa..."]:1: attempt to index global 'loc' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return loc.logicalConnection -- {comment = fa..."]:1: attempt to index global 'loc' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval tableName -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0bf60878 nil
[192.168.100.5:63008] Debugger sent (command): eval currentAuthTbl.organization_id -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
Error in expression: [string "return currentAuthTbl.organization_id -- {com..."]:1: attempt to index global 'currentAuthTbl' (a nil value)
[192.168.100.5:63008] Debugger received (file, line, err): nil nil [string "return currentAuthTbl.organization_id -- {com..."]:1: attempt to index global 'currentAuthTbl' (a nil value)
[192.168.100.5:63008] Debugger sent (command): eval organizationId -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil table: 0x0b111948 nil
[192.168.100.5:63008] Debugger sent (command): out
Paused at file lib/db/dqry.lua line 200
[192.168.100.5:63008] Debugger received (file, line, err): lib/db/dqry.lua 200 nil
[192.168.100.5:63008] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/lib/db/dqry.lua 110
[192.168.100.5:63008] Debugger received (file, line, err): lib/db/dqry.lua 110 nil
{"query", "lib/db/dqry.lua", 197, 200, "Lua", "field", "lib/db/dqry.lua"}
{"sessionRec", "lib/auth.lua", 267, 271, "Lua", "upvalue", "lib/auth.lua"}
{"authenticate", "lib/auth.lua", 288, 322, "Lua", "field", "lib/auth.lua"}
{"jsonValue", "lib/rest.lua", 321, 369, "Lua", "upvalue", "lib/rest.lua"}
{"createPostAnswer", "lib/rest.lua", 472, 481, "Lua", "upvalue", "lib/rest.lua"}
{"createAnswer", "lib/rest.lua", 560, 568, "Lua", "upvalue", "lib/rest.lua"}
{"answerFunction", "lib/rest.lua", 695, 723, "Lua", "upvalue", "lib/rest.lua"}
{"answer", "lib/server.lua", 94, 121, "Lua", "upvalue", "lib/server.lua"}
{"in_callback", "lib/server.lua", 197, 217, "Lua", "upvalue", "lib/server.lua"}
{"poll_event", "lib/lib_poll.lua", 241, 247, "Lua", "upvalue", "lib/lib_poll.lua"}
{"poll", "lib/lib_poll.lua", 307, 326, "Lua", "field", "lib/lib_poll.lua"}
{"pollLoop", "lib/server.lua", 289, 296, "Lua", "upvalue", "lib/server.lua"}
{"serverRun", "lib/server.lua", 371, 455, "Lua", "field", "lib/server.lua"}
{"server", "manager/ma_server.lua", 131, 156, "Lua", "upvalue", "manager/ma_server.lua"}
{"startServer", "manager/ma_server.lua", 174, 176, "Lua", "local", "manager/ma_server.lua"}
{nil, "manager/ma_server.lua", 0, 186, "main", "", "manager/ma_server.lua"}
[192.168.100.5:63008] Debugger received (file, line, err): table: 0x0a949770 nil nil
[192.168.100.5:63008] Debugger sent (command): eval newRec -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger received (file, line, err): nil nil nil
[192.168.100.5:63008] Debugger sent (command): out
Unknown error
[192.168.100.5:63008] Debugger received (file, line, err): nil nil Debugger error: unexpected response 'do local _={};return _;end200 OK'
Debugger error: unexpected response 'do local _={};return _;end200 OK'
Debugging session completed (traced 16 instructions).
I have changed OS 2 times since this started. This happens still several times in a hour and makes debugging almost unuseable.
Error message is: Debugger error: unexpected response 'do local _={};return _;end200 OK'.
To my eye it seems that this (http) 200 OK should not be after return _;end. Maybe you should see where in debugger you send those texts, look for server:send("200 OK in mobdebug.lua.
@stuta, I can't reproduce this, but I suspect it may be related to the use of (async) breakpoints. For example, in the following fragment:
[192.168.100.5:63008] Debugger sent (command): out
Paused at file lib/db/dqry.lua line 200
[192.168.100.5:63008] Debugger received (file, line, err): lib/db/dqry.lua 200 nil
[192.168.100.5:63008] Debugger sent (command): stack -- {comment = false, maxlength = false, maxlevel = 5, maxnum = 256, metatostring = false, nocode = true, numformat = "%.16g"}
[192.168.100.5:63008] Debugger sent (command): asetb /Users/pasi/ma-git/ma-server/source/lib/db/dqry.lua 110
[192.168.100.5:63008] Debugger received (file, line, err): lib/db/dqry.lua 110 nil
"asetb" indicates asynchronous breakpoint (which is set while the application is running), which is not what I'd expect, as the application appears to be paused. Did you try to set the breakpoint while the application was running or did you try it when it was already suspended in the debugger? I'll check the logic for the async breakpoints, but not sure where else to look for this issue.
Looking back on the other traces you provided, it looks like it happens mostly when the Stack window is shown. So, the application is stopped, asetb command is triggered, but the stack is being retrieved first and the result of the stack command gets mixed with the asetb command.
I don't have stack window open but I have all the time watch window open and always with many watches.
Interesting; how many watches do you have? I'll try to reproduce with those, as they are executed in sequence and it seems like it may be contributing to the overlap.
Do you set breakpoints dynamically (while the app is running)? Does this issue happen when you don't set/unset breakpoints?
Typically I have 4 - 12 watches. I do set breakpoints dynamically, but this has happened hundreds of times when I did not set breakpoints during that debug.
It always happens only when program goes at least 5 levels down (might be much more like 10-15) and it always happens when I'm stepping into some function.
@stuta, just want to check: do you still see this happening?
Yes, very often when I go into more than 2 or 3 levels of "Step into". Now I see only "Debugging session completed". I don't have to restart zbs, but this is a real pain.
I'm thinking if I have some same filename as zbs on my codebase. I found mobdebug.lua from my codebase but removing it didn't help. Anyways, my backend server has huge amounts of code, I guess that must be the reason.
Btw, do you want my lua-format code? We talked about it somewhere but I can't remember or find where.
[127.0.0.1:59954] Debugger sent (command): over
Paused at file preference/form/core/nc-list/4d/output_tab_4d.lua line 45
[127.0.0.1:59954] Debugger received (file, line, err): preference/form/core/nc-list/4d/output_tab_4d.lua 45 nil
[127.0.0.1:59954] Debugger sent (command): over
Paused at file preference/form/core/nc-list/4d/output_tab_4d.lua line 46
[127.0.0.1:59954] Debugger received (file, line, err): preference/form/core/nc-list/4d/output_tab_4d.lua 46 nil
[127.0.0.1:59954] Debugger sent (command): over
Paused at file preference/form/core/nc-list/4d/output_tab_4d.lua line 47
[127.0.0.1:59954] Debugger received (file, line, err): preference/form/core/nc-list/4d/output_tab_4d.lua 47 nil
[127.0.0.1:59954] Debugger sent (command): over
Paused at file preference/form/core/nc-list/4d/output_tab_4d.lua line 49
[127.0.0.1:59954] Debugger received (file, line, err): preference/form/core/nc-list/4d/output_tab_4d.lua 49 nil
[127.0.0.1:59954] Debugger sent (command): over
Paused at file preference/form/core/nc-list/4d/output_tab_4d.lua line 50
[127.0.0.1:59954] Debugger received (file, line, err): preference/form/core/nc-list/4d/output_tab_4d.lua 50 nil
[127.0.0.1:59954] Debugger sent (command): step
Paused at file lib/db/database-rest4d.lua line 413
[127.0.0.1:59954] Debugger received (file, line, err): lib/db/database-rest4d.lua 413 nil
[127.0.0.1:59954] Debugger sent (command): setb /Users/pasi/ma-git/nc-server/source/lib/db/database-rest4d.lua 263
[127.0.0.1:59954] Debugger sent (command): asetb /Users/pasi/ma-git/nc-server/source/lib/db/database-rest4d.lua 267
[127.0.0.1:59954] Debugger received (file, line, err): lib/db/database-rest4d.lua 267 nil
[127.0.0.1:59954] Debugger sent (command): asetb /Users/pasi/ma-git/nc-server/source/lib/db/database-rest4d.lua 269
[127.0.0.1:59954] Debugger received (file, line, err): lib/db/database-rest4d.lua 269 nil
[127.0.0.1:59954] Debugger sent (command): asetb /Users/pasi/ma-git/nc-server/source/lib/db/database-rest4d.lua 388
[127.0.0.1:59954] Debugger received (file, line, err): lib/db/database-rest4d.lua 388 nil
[127.0.0.1:59954] Debugger sent (command): asetb /Users/pasi/ma-git/nc-server/source/lib/db/database-rest4d.lua 641
[127.0.0.1:59954] Debugger received (file, line, err): lib/db/database-rest4d.lua 641 nil
[127.0.0.1:59954] Debugger received (file, line, err): lib/db/database-rest4d.lua 263 nil
[127.0.0.1:59954] Debugger sent (command): over
[127.0.0.1:59954] Debugger received (file, line, err): nil nil nil
Debugging session completed (traced 26 instructions).
I stepped into function and when trying to step into next I get this error.
Debugger error: unexpected response 'do local _={};return _;end200 OK'
Debugging session completed (traced 2 instructions).
@stuta, what's the simplest script you can reproduce this on? Are you still using async breakpoint set/delete when this happens?
I can't reproduce this issue, so I suspect it's either related to the code structure or the data structure you have, so simplifying the example may help me reproduce it and identify its cause.
This is random and my backend is huge (260000 lines of Lua code, over a million lines all) and this problem does not happen if I run the same code twice.
It seems to be related to how deep the call chain goes. I have at least 15 files/functions deep call chain and this crash happens always when I'm debugging into a deeper level.
When this happens I put debug dot to deeper level function. I'm using zbs only as a debugging tool. Code edits happen in VSCode because I write mostly front-end code and it has huge amounts of really good plugins. I wish I had a good Luajit debugger there. I can live with this for now.
Btw, do you want my lua-format code? We talked about it somewhere but I can't remember or find where.
@stuta, can you check if the proposed patch in https://github.com/pkulchenko/MobDebug/pull/68 fixes the debug aborts we discussed in this ticket?
Hello. I have moved to MacBook Pro arm64 and VSCode https://marketplace.visualstudio.com/items?itemName=tomblind.local-lua-debugger-vscode and https://github.com/Koihik/LuaFormatter. It's easier to use VSCode for everything because half of my work is doing frontend code with Vue 3. Also, my codebase has changed radically, it might be hard to find this bug.
It's hard to find a good debugger for VSCode and Luajit. If this could be a plugin in VSCode the I would test it.
@stuta
It's hard to find a good debugger for VSCode and Luajit. If this could be a plugin in VSCode the I would test it.
I working on such plugin for MobDebug module https://github.com/moteus/vscode-mobdebug Right now it seems working in basic scenarios. I think about extend configuratoin and support multiple base directories. E.g. debug code inside docker from windows system and debugged code belongs to more than one projects. For ZBS I've patch, but now I think about to support this functional insize mobdebug itself.