From 3146040edc461b3e0ede2f655ebd701b8e035b27 Mon Sep 17 00:00:00 2001 From: Ejsstiil <36369441+Ejsstiil@users.noreply.github.com> Date: Sat, 11 Jun 2022 17:26:28 +0200 Subject: [PATCH] Re-introduce the Lua debugger (#3938) Introduces a fix to the Lua debugger that allows you to use it if you have setup your development environment. Allows for extensive debugging, including being able to see the stacktrace, locals and globals at any point of execution. --- coderes/Engine/dbg_break_disabled.bmp | Bin 0 -> 920 bytes coderes/Engine/dbg_break_enabled.bmp | Bin 0 -> 920 bytes coderes/Engine/dbg_cursor.bmp | Bin 0 -> 920 bytes coderes/Engine/dbg_cursor_disabled.bmp | Bin 0 -> 920 bytes coderes/Engine/dbg_cursor_enabled.bmp | Bin 0 -> 920 bytes coderes/Engine/dbg_tool_clearbreakpoints.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_disablebreakpoints.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_enablebreakpoints.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_find.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_findnext.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_findprev.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_resume.bmp | Bin 0 -> 824 bytes coderes/Engine/dbg_tool_step.bmp | Bin 0 -> 824 bytes lua/userInit.lua | 17 +++++++++++++++++ setup/bin/init_dev.lua | 3 +++ 15 files changed, 20 insertions(+) create mode 100644 coderes/Engine/dbg_break_disabled.bmp create mode 100644 coderes/Engine/dbg_break_enabled.bmp create mode 100644 coderes/Engine/dbg_cursor.bmp create mode 100644 coderes/Engine/dbg_cursor_disabled.bmp create mode 100644 coderes/Engine/dbg_cursor_enabled.bmp create mode 100644 coderes/Engine/dbg_tool_clearbreakpoints.bmp create mode 100644 coderes/Engine/dbg_tool_disablebreakpoints.bmp create mode 100644 coderes/Engine/dbg_tool_enablebreakpoints.bmp create mode 100644 coderes/Engine/dbg_tool_find.bmp create mode 100644 coderes/Engine/dbg_tool_findnext.bmp create mode 100644 coderes/Engine/dbg_tool_findprev.bmp create mode 100644 coderes/Engine/dbg_tool_resume.bmp create mode 100644 coderes/Engine/dbg_tool_step.bmp diff --git a/coderes/Engine/dbg_break_disabled.bmp b/coderes/Engine/dbg_break_disabled.bmp new file mode 100644 index 0000000000000000000000000000000000000000..76ef2ae1c96201f4eba7788c1076a82765ac3c65 GIT binary patch literal 920 zcmZ?rox#ii24+A~1BfMnmiw^D#Vw*=h)sLUG#)6=_PR7xCA<3zhaTzE*Lc z;>z%52np|znK$W;cXcXP7rBFIBbta>xg%QOzSVdKj>~n=vQ-d_gfQ0YzG-SKc`tIn_b{PF#G)N}khAsCp__id8UW>bt1+=p>m00l%TSNr`l&t2xZ S>!Lt-rv*?zw3Wi=B6p6vmKsA1gKeqp>GP+tD){y5*UMKgU%Y&Q2kkw)mot}>VH*R(QUAP z#SyQw|t|5OeN5yk}QpCs!;dTO^AIapiC^OosVu3j;$7gGYr2P%m;20oh-^eEIz4 zGfwpR^U1R(x%0RgfF>+t5XcpnvSbRH3B+@?vb7k>7(A;yuid;xye>?Yx9{KHe|$ft SIFTZ_^1`1#e;|?0zyJW{VS2#; literal 0 HcmV?d00001 diff --git a/coderes/Engine/dbg_cursor_disabled.bmp b/coderes/Engine/dbg_cursor_disabled.bmp new file mode 100644 index 0000000000000000000000000000000000000000..edce83277421b53d98646798f1131fe018af0a92 GIT binary patch literal 920 zcmZ?rox#ii24+A~1BfMnmSh7JX8%(OLjIxK|$f9 zN#P9*3^_T%VPOSrZPS)4nYn!VjAhGkA-~!nhI|H%T+Im!W=&tZw4}3BJUkp|lw(Or za7_(Ee0)wz%dcO*e*XH22fca!M!!s-VGRSrDh7sJhW?fPzkdI!?Ck}51n9w_>T2n% zbo&w~o*W*oJT5$lA(Mfjn}J~;1H(xMhCLv*L8-x{#d8^=qk*9cG)F1TpP>>gb%23k zKQ;u^3lTrWz;K*_;RM*IV+;%{7#LC*wDS@m=BQek(;u&dywV_&-S{l_F>ecF)2q+FjJXt&ptqcr%!H(IL)LTYOn5)zW@>i*#cfB*gc^7V^xxiKh^7c($rF)iP{9H^tPy&V$Hpm@*A;|>an zud14~XwlTAOYxx4rYMFq2CGur$%_|EUc5M^u8uD#2$=SqN=rKzE(DqbLJ0{BF){d& zOjf!=QZPqCJXBeHJTUD6lX1oL={IiQZeOqA`~)3dXcjg7H*+!u{Lk3_D87ptqU;_;QB9%R21+$XjfHav(|8L zOFgmq&aBdCBMK3d$)$AqwID!}aC{71ho)I$I5B|_=njnb@BTD8iBheSlrIvQBpq3% zq(j%77SJ@VROk*ozz*;OSb+CS=!VXuRFy6`AqYLnmOK2i{hgz2;g$t32Z%rsH~|if z^X>N|gZW=H5Sl9K46J=bh?Ppf;r~EfGhYUDpvI&$;5#q_?>EuZ85V;G0>6QMAb&Ne zdi0M@6;NRF+aF4wO`W?+#llr$`3b8h%vsaQL1R!78X%)%9Z<|^bH{q$g% z@9Vi7Vlm?hk^7m9HF_1PPguU$Y$FO0d46Sc^Y8h&sH#(duOtZ(!*)-!~kV_$hsMsK8^xl*AA|%pn@< literal 0 HcmV?d00001 diff --git a/coderes/Engine/dbg_tool_disablebreakpoints.bmp b/coderes/Engine/dbg_tool_disablebreakpoints.bmp new file mode 100644 index 0000000000000000000000000000000000000000..67563617d2a2b7322ed7d3ad7b3aafa043b97eea GIT binary patch literal 824 zcmb`DF%E-J3`0XZvQ(WoLQjC0JGb}WdIQ7}!1_j(m3%QZ;z$0@`;Nr>yWFGIjQ+xT zoM(us`8Uj;BTqBXe(UzH?^EhJ8Tf96>jj@+zVj#0sVw`H0JH*H0JS?Q-$#Na082AJ z@tQhG4c@2R%kI8(6*bcx@Tjx}jx*H6(*JQ%7==g*C#AVJC3pEQQ&)I$ns%??QQZ;E FhyyKyJ9Gd5 literal 0 HcmV?d00001 diff --git a/coderes/Engine/dbg_tool_enablebreakpoints.bmp b/coderes/Engine/dbg_tool_enablebreakpoints.bmp new file mode 100644 index 0000000000000000000000000000000000000000..2c0fc8f8326934de6079e9e92be4bb30bbf8bb73 GIT binary patch literal 824 zcmb`DF$#b%6ho_yF5=`7Jb^en>oq-)Co(i8gx}(1pe5$N=7Yzz4=HQIz2Z#ebZNONSvW37XFWu!e~U&I4RG)p}EO7nRci{+ literal 0 HcmV?d00001 diff --git a/coderes/Engine/dbg_tool_find.bmp b/coderes/Engine/dbg_tool_find.bmp new file mode 100644 index 0000000000000000000000000000000000000000..46c9ae489868b587ffe3677cb1aa7c2e87eb7f2e GIT binary patch literal 824 zcmcJJF%H5o5Ck1krirL{0xyWD)BFD&KR`UetbAy6@f`(7Shls9-K=k~x4HDS>Avc$ z?=zK4=O_8+#ZCvh?vLlUyB^o@`_Zg&MOtg{m>=99@{}X&T|N`(NU$VgTO>aJ4_(R&e)8QW literal 0 HcmV?d00001 diff --git a/coderes/Engine/dbg_tool_findnext.bmp b/coderes/Engine/dbg_tool_findnext.bmp new file mode 100644 index 0000000000000000000000000000000000000000..7b73abe2bd72131772d4581c9a8cea9bc8e1b3e7 GIT binary patch literal 824 zcmZ?rwP0od12Z700mK4O%*Y@C7H0y=3voj*SO7@ed;6Xkw9Lnc7-euZK=qhfAR=fa zL?xVrn}DAIQIB5@vMj_>xQGu7;1PjK0U0pmh(N#;p-}y@Wk5HA0K__EF0#oGHc;86 qOP9dPq3V&jSk*%mW0IJP;Z_i@7+DLD4R;tW!^u;R-!$@M85jT`3P3*q literal 0 HcmV?d00001 diff --git a/coderes/Engine/dbg_tool_findprev.bmp b/coderes/Engine/dbg_tool_findprev.bmp new file mode 100644 index 0000000000000000000000000000000000000000..d5f8ed6eba99cdc53e6c02c255077a65fd4b9d03 GIT binary patch literal 824 zcmbV|!3~5k3c1^A2sMpcFs{h!$9~U|DA%(OKBqtj7*8&13CS45&Tw zduHXj4!ao+K?0^~7s| lt0z(mvU*~)Agd?F<8bxFCMlpK2ig2(zP`v@ zf^49AOf6W=hp2>;_)UhJ2~m%x7}I=Y^=OK*a^dQcWzmd