bit-hack/nano-script

Create a nice debugger

Closed this issue · 2 comments

Create a nice debugger for programs with a nice retro style:

.-Source---------------------------------.-Console------------------------------.
|11 function my_func(a, b, c, d)         | > please enter a number:             |
|12 = return a =======================   | # 35                                 |
|13 end                                  | > calculating...                     |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |                                      |
|                                        |-Controls-----------------------------|
|                                        |Run F5  Break F9  Step F11  Reset F12 |
|-Memory---------------------------------'-----------.-Vars---------------------|
|   0 1 2 3 4 5 6 7 8 9 a b c d e f                  |a         1234            |
|00 00000000000000000000000000000000 ................|b         0               |
|10 00000000000000000000000000000000 ................|c         1               |
|20 00000000000000000000000000000000 ................|d         12              |
|30 00000000000000000000000000000000 ................|                          |
|40 00000000000000000000000000000000 ................|                          |
|50 00000000000000000000000000000000 ................|                          |
|60 00000000000000000000000000000000 ................|                          |
|70 000228f2985298762609238749871665 ...please enter |                          |
|80 23623978609718926746501992558192 a number:.calcul|                          |
|90 12648634860000000000000000000000 ating...........|                          |
|a0 00000000000000000000000000000000 ................|                          |
|b0 00000000000000000000000000000000 ................|                          |
|c0 00000000000000000000000000000000 ................|                          |
|d0 00000000000000000000000000000000 ................|                          |
|e0 00000000000000000000000000000000 ................|                          |
|f0 00000000000000000000000000000000 ................|                          |
'----------------------------------------------------'--------------------------'

Lots of debug features were added in: 403142b

done, but with a nice modern GUI using ImGui.