SRL Archive - Suggestions

Look in the thread :) ( Hard to Explain )


Home

2010-03-19 08:01:18

Hello would it be possible to get Simba use a Very detailed Debug. What i mean is this:


Example Script:

[PHP]Function MakeCompassPoint(x, y: integer): boolean;
var
a: extended;
begin
a := rs_GetCompassAngleDegrees;
if (a < 0) or (not LoggedIn) then
exit;
a := a + 90 + Degrees(ArcTan2(y - MMCY, x - MMCX));
Result := MakeCompass(a);
end;[/PHP]


And then when it calls a Function or procedure it would writeln everything, like

If it Calls this:[PHP] "a := rs_GetCompassAngleDegrees;"[/PHP]
Then it would writeln this: [PHP] "a := rs_GetCompassAngleDegrees;"[/PHP] .
When it would call this:[PHP] "a := a + 90 + Degrees(ArcTan2(y - MMCY, x - MMCX));"[/PHP]
It would Writeln this [PHP]"a := a + 90 + Degrees(ArcTan2(y - MMCY, x - MMCX));"[/PHP]

So the point is that it would Writeln exact line where script is going on :)


~Home

Diddy Kong

2010-03-19 12:45:33

Debugging will be available in Simba soon. For now, use SCAR's.

mixster

2010-03-19 13:14:48

Erm, what Diddy Kong? Scar offers no more debugging support (except for stepping I think) than Simba.

Anyway, Home, if you're compiling it yourself, I'm sure there would be some way to do it by altering the PS interpreter a bit so that before executing a line it would writeln it, though unsure

Diddy Kong

2010-03-19 15:01:53

Pretty much what Home is talking about is debug stepping, but why would you want Simba to print out the entire line for when when a value is assigned to a variable?

mastaraymond

2010-03-19 20:25:00

Yes that would be possible.. However it would slow a script down a lot.. Optional might be a good thing, yeah.

Nava2

2010-03-20 00:45:09

I think that just having a call stack would be better.

mastaraymond

2010-03-20 06:38:48

From: Nava2
I think that just having a call stack would be better.

Would require a modified version of the pascalscript I guess :(

ss23

2010-03-20 07:07:36

Wow, dw, I posted in the wrong thread.

Also, hot loli are winner!

Ron

2010-03-28 01:31:05

That would be a sweet extension.

Coh3n

2010-03-28 11:08:28

From: mastaraymond
Yes that would be possible.. However it would slow a script down a lot.. Optional might be a good thing, yeah.

I like this also. I often put in Writeln's to see what lines get executed. This would save the trouble. :p