SRL Archive - Development

Debugging for Simba


Dgby714

2011-07-21 18:54:15

Have been playing with PascalScript's debugging for a bit.


Done: Breakpoints! Step Into, Step Over, Pause.
Planned: Viewing Variable contents and Stack? maybe a window with the actual bytecode?

If you wanna play with it here, http://dl.dropbox.com/u/28145516/SSimba.exe

Can't do much with it as I didn't add MML to the compiler.

Gonna work on getting this into Simba when we sort out a few things.

Edit: Simba+Breakpoints sample on this post.

Waddo

2011-07-21 20:10:03

When you say stack, do you mean the function call stack?
explain to me how to download this so I can compile it and edit it and i will have a look at it :)

for variable contents, just create a stack at runtime, and add the variables memory address to the stack up on declaration.
Maybe a bit more lengthy than that but thats a basic idea.

nielsie95

2011-07-21 20:44:31

Cool! Would be great to have :)

Coh3n

2011-07-22 00:51:32

Uh I don't understand. :o

BraK

2011-07-22 03:07:59

From: Coh3n
Uh I don't understand. :o


Don't feel too bad most people don't/won't understand.(including me) :)

~BraK

Dgby714

2011-07-22 05:19:22

From: Waddo
When you say stack, do you mean the function call stack?
explain to me how to download this so I can compile it and edit it and i will have a look at it :)

for variable contents, just create a stack at runtime, and add the variables memory address to the stack up on declaration.
Maybe a bit more lengthy than that but thats a basic idea.


I didn't post the source, it was a pretty simple program.

From: Coh3n
Uh I don't understand. :o


If you get an ambiguous exception, you can use this debugging to find out what happened.

Wizzup?

2011-07-22 06:31:26

From: nielsie95
Cool! Would be great to have :)


This. :) Make sure you add to incrementally to Simba. :p

Dgby714

2011-07-22 08:42:44

We need icons if anyone would like to make them =)

Step Into, Step Over and Breakpoint, all 16x16

Coh3n

2011-07-22 10:07:05

I still don't get it. Is this like a separate feature to Simba, or built right in? I'm not seeing what the difference is in the images you're posting. :crying:

Dgby714

2011-07-22 10:18:37

From: Coh3n
I still don't get it. Is this like a separate feature to Simba, or built right in? I'm not seeing what the difference is in the images you're posting. :crying:


You can tick the gutter to add a breakpoint which will cause PS to stop at. Then you can proceed line by line. Try the test app…

Coh3n

2011-07-22 10:20:58

From: Dgby714
You can tick the gutter to add a breakpoint which will cause PS to stop at. Then you can proceed line by line. Try the test app…
Ohh nice! Very useful, sorry I'm such a nub. :garfield:

Dgby714

2011-07-24 19:47:15


Sample

Note: This Sample has no icons on Step Into and Step Over, they are to the right of the Resume, Pause and Stop buttons on the Debugger panel.

Gu3st...

2011-07-24 20:02:14

Really nice :)

Dgby714

2011-07-25 00:16:51

I'm done for the night, updated the image and sample exe.

You can find sawse here -> https://github.com/Dgby714/Simba/tree/Debugging

Gu3st...

2011-07-25 00:44:24

From: Dgby714
I'm done for the night, updated the image and sample exe.

You can find sawse here -> https://github.com/Dgby714/Simba/tree/Debugging
"Caption = 'THA FUKING Simba'" I lol'd

Nice job :)

Nava2

2011-07-25 10:58:18

From: Zyt3x
"Caption = 'THA FUKING Simba'" I lol'd

Nice job :)


That's been there a LONG time :>