Beispiel #1
0
 public void ShowStackTrace(LuaStackTrace st)
 {
     this.lvStackTrace.Items.Clear();
     for (int i = 0; i < st.Count; i++)
     {
         LuaFunctionInfo lfi  = st[i];
         ListViewItem    item = new ListViewItem(new string[] { lfi.FunctionName, lfi.Source, lfi.Line.ToString() });
         item.Tag      = i;
         item.Selected = i == 0;
         this.lvStackTrace.Items.Add(item);
     }
 }
Beispiel #2
0
        private void dbgSTBtn_Click(object sender, EventArgs e)
        {
            LuaStackTrace st = new LuaStackTrace(this.ls);

            MessageBox.Show(st.ToString());
        }