Advertisement
Guest User

dbg tracing

a guest
Jun 27th, 2013
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 7.58 KB | None | 0 0
  1. (zotonic001@precise32)1> dbg:tracer().
  2. {ok,<0.453.0>}
  3. (zotonic001@precise32)2> dbg:p(all, call).
  4. {ok,[{matched,zotonic001@precise32,197}]}
  5. (zotonic001@precise32)3> dbg:tpl(erlydtl_compiler, check_parse, []).
  6. {ok,[{matched,zotonic001@precise32,1}]}
  7. (zotonic001@precise32)4> dbg:tpl(erlydtl_compiler, call_extension, []).
  8. {ok,[{matched,zotonic001@precise32,1}]}
  9. (zotonic001@precise32)5> ztl:compile(<<"{% loremipsum words=2 dummy=#test %}">>, foo, [{extension_module, ztl_extensions}, {compiler_options, [debug_compiler]}], z:c(testsandbox)).
  10. (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[],
  11.              {dict,0,16,16,8,80,48,
  12.                    {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  13.                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  14.              none,[],off,".",
  15.              [[]],
  16.              [],
  17.              [erlydtl_filters],
  18.              "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  19.              {file,read_file},
  20.              foo,
  21.              [debug_compiler],
  22.              true,false,none,false,false,ztl_extensions,[]},init_context,[{dtl_context,[],
  23.               {dict,0,16,16,8,80,48,
  24.                     {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  25.                     {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  26.               none,[],off,".",
  27.               [[]],
  28.               [],
  29.               [erlydtl_filters],
  30.               "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  31.               {file,read_file},
  32.               foo,
  33.               [debug_compiler],
  34.               true,false,none,false,false,ztl_extensions,[]}])
  35. (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
  36.              {dict,0,16,16,8,80,48,
  37.                    {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  38.                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  39.              none,[],off,".",
  40.              [[]],
  41.              [],
  42.              [erlydtl_filters],
  43.              "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  44.              {file,read_file},
  45.              foo,
  46.              [debug_compiler],
  47.              true,false,none,false,false,ztl_extensions,[]},scan,[{scanner_state,"#test %}",
  48.                 [{'=',{1,28}},
  49.                  {identifier,{1,23},"ymmud"},
  50.                  {number_literal,{1,21},"2"},
  51.                  {'=',{1,20}},
  52.                  {identifier,{1,15},"sdrow"},
  53.                  {identifier,{1,4},"muspimerol"},
  54.                  {open_tag,{1,1},'{%'}],
  55.                 {1,29},
  56.                 {in_code,"%}"}}])
  57. (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
  58.              {dict,0,16,16,8,80,48,
  59.                    {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  60.                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  61.              none,[],off,".",
  62.              [[]],
  63.              [],
  64.              [erlydtl_filters],
  65.              "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  66.              {file,read_file},
  67.              foo,
  68.              [debug_compiler],
  69.              true,false,none,false,false,ztl_extensions,[]},post_scan,[[{open_tag,{1,1},'{%'},
  70.   {identifier,{1,4},loremipsum},
  71.   {identifier,{1,15},words},
  72.   {'=',{1,20}},
  73.   {number_literal,{1,21},"2"},
  74.   {identifier,{1,23},dummy},
  75.   {'=',{1,28}},
  76.   {hash,{1,29},"#"},
  77.   {identifier,{1,30},test},
  78.   {close_tag,{1,35},'%}'}]])
  79. (<0.47.0>) call erlydtl_compiler:check_parse({error,{{1,29},erlydtl_parser,["syntax error before: ",["\"#\""]]},
  80.        [[{'=',{1,28}},
  81.          {hash,{1,29},"#"},
  82.          {identifier,{1,30},test},
  83.          {close_tag,{1,35},'%}'}],
  84.         {no_func,no_line},
  85.         87,
  86.         [182,71,39,1,0],
  87.         [{identifier,{1,23},dummy},
  88.          [{{identifier,{1,15},words},{number_literal,{1,21},"2"}}],
  89.          {identifier,{1,4},loremipsum},
  90.          {open_tag,{1,1},'{%'},
  91.          []]]},[],{dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
  92.              {dict,0,16,16,8,80,48,
  93.                    {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  94.                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  95.              none,[],off,".",
  96.              [[]],
  97.              [],
  98.              [erlydtl_filters],
  99.              "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  100.              {file,read_file},
  101.              foo,
  102.              [debug_compiler],
  103.              true,false,none,false,false,ztl_extensions,
  104.              [{open_tag,{1,1},'{%'},
  105.               {identifier,{1,4},loremipsum},
  106.               {identifier,{1,15},words},
  107.               {'=',{1,20}},
  108.               {number_literal,{1,21},"2"},
  109.               {identifier,{1,23},dummy},
  110.               {'=',{1,28}},
  111.               {hash,{1,29},"#"},
  112.               {identifier,{1,30},test},
  113.               {close_tag,{1,35},'%}'}]})
  114. (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
  115.              {dict,0,16,16,8,80,48,
  116.                    {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  117.                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  118.              none,[],off,".",
  119.              [[]],
  120.              [],
  121.              [erlydtl_filters],
  122.              "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  123.              {file,read_file},
  124.              foo,
  125.              [debug_compiler],
  126.              true,false,none,false,false,ztl_extensions,
  127.              [{open_tag,{1,1},'{%'},
  128.               {identifier,{1,4},loremipsum},
  129.               {identifier,{1,15},words},
  130.               {'=',{1,20}},
  131.               {number_literal,{1,21},"2"},
  132.               {identifier,{1,23},dummy},
  133.               {'=',{1,28}},
  134.               {hash,{1,29},"#"},
  135.               {identifier,{1,30},test},
  136.               {close_tag,{1,35},'%}'}]},parse,[[[{open_tag,{1,1},'{%'},
  137.    {identifier,{1,4},loremipsum},
  138.    {identifier,{1,15},words},
  139.    {'=',{1,20}},
  140.    {number_literal,{1,21},"2"},
  141.    {identifier,{1,23},dummy},
  142.    {'=',{1,28}},
  143.    {hash,{1,29},"#"},
  144.    {identifier,{1,30},test},
  145.    {close_tag,{1,35},'%}'}],
  146.   {no_func,no_line},
  147.   0,[],[]]])
  148. (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
  149.              {dict,0,16,16,8,80,48,
  150.                    {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
  151.                    {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
  152.              none,[],off,".",
  153.              [[]],
  154.              [],
  155.              [erlydtl_filters],
  156.              "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
  157.              {file,read_file},
  158.              foo,
  159.              [debug_compiler],
  160.              true,false,none,false,false,ztl_extensions,[]},init_treewalker,[{treewalker,0,false,undefined}])
  161. ** exception error: no case clause matching {tag,{identifier,{1,4},loremipsum},
  162.                                                  [{{identifier,{1,15},words},{number_literal,{1,21},"2"}},
  163.                                                   {{identifier,{1,23},dummy},
  164.                                                    {extension,{auto_id,{identifier,{1,30},test}}}}],
  165.                                                  false}
  166.      in function  erlydtl_compiler:value_ast/5
  167.      in call from erlydtl_compiler:'-body_ast/3-fun-2-'/3
  168.      in call from lists:mapfoldl/3
  169.      in call from erlydtl_compiler:body_ast/3
  170.      in call from erlydtl_compiler:compile_to_binary/4
  171.      in call from erlydtl_compiler:compile/3
  172. (zotonic001@precise32)6>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement