Re: phix and debugging question
- Posted by begin Jun 09, 2018
- 2230 views
i renamed my old phix folder and installed anew with a setup from your website and left it as 32bit.
the test source i compile is:
include memory.ew include reader.ew include myinferer_4.ew integer err = Parse() with trace trace(3) init_infer() infer()
Reading h:/Euphoriaprog/Microexp/discount1.kb ................................................................................................... Parsing done! pDiagN.e line 3300: symtab[220] bad S_NTyp[1] "sleep(5)..." pDiagN.e line 3041: oops, rtn[=8841] out of range[1..2625] pDiagN.e line 3041: oops, rtn[=9133] out of range[1..2625] H:\Euphoriaprog\Microexp\testmicroexp.ew:-1 (era=#00600DDC, from_addr=#0, ret_addr=#0) type check failure, ???(varno=8738[or_ecx=#00002222]) is ??? Global & Local Variables --> see H:\Euphoriaprog\Microexp\ex.err Press Enter...
is displayed. ex.err (shortened):
pDiagN.e line 3300: symtab[220] bad S_NTyp[1] H:\Euphoriaprog\Microexp\testmicroexp.ew:-1 (era=#00600DDC, from_addr=#0, ret_addr=#0) type check failure, ???(varno=8738[or_ecx=#00002222]) is ??? Global & Local Variables H:\Euphoriaprog\Microexp\memory.ew: attr_list[1] = {"Acme done",99'c',0,-1,"",{},"","the Acme order has /not/ been completed",-1} attr_list[2] = {"XYZ done",99'c',0,-1,"",{},"","the XYZ Company order has /not/ been completed",-1} .... H:\Euphoriaprog\Microexp\reader.ew: token = {3} line = "" rule_name = "h:/Euphoriaprog/Microexp/discount1.kb" cf = "" attr = "OK done" pred = "IS" val = "yes" parm_word = "58" error = 0 defaultcf = 90'Z' rule_file = 3 error_in_line = 0 rule_no = 13 kind = 3 currcon = 1000 lastcon = 1000 confidence = 0 func_list = {} H:\Euphoriaprog\Microexp\myinferer_4.ew: goal_list = {} how_list = {} context = {} main_list = {} why_ptr = {} prmpt_ptr = {} proc_item = {} true_rules = {} answer_list = {} mark_context = {} done = 0 line_count = 0 p_pos = 0 main_goal = "" H:\Euphoriaprog\Microexp\testmicroexp.ew: err = 1 h:\Phix\builtins\get.e: input_file = <novalue> input_string = <novalue> string_next = 0 ch = 0 get_line_no = 0 h:\Phix\builtins\VM\pprntfN.e: init2 = 1 inf = inf nan = nan hexchar = "0123456789ABCDEFabcdef" bases = {10,16,8,2} h:\Phix\builtins\scanf.e: baseset = <novalue> binit = 0 ch = 56'8'
no trace file is created.
without the trace the program executes and runs into maybe some loop.