...::: Scratch debugger :::...
I think a "debugger for Scratch would be very useful. Currently "wrong" scripts are marked with a red border (which does not disappear when the "wrong" block is taken out, try with #/0) and you do not now what's the problem.
Also, when the main version of Scratch supports strings, this would be a helpful way to prevent people from using string variables as numbers and vice versa.
The debug window should have to be easy, not extremely difficult like in most languages.
This is how i see a debugger (not implemented, only the look):
The red messages are fatal errors, the green ones are to help clean up the code, avoid problems etc.
The red underlined words are links to scripts or actions.
What do you think? Please tell!
Joren
Last edited by JSO (2008-04-13 15:24:36)
Offline
This is good stuff - but I would also like to see a debugger that addressed run-time errors. EdnaC had a thread going for awhile that discussed what a debugger in Scratch might look like. I think we agreed that being able to put a watch on a variable (have Scratch tell you where the value was being change) would be a big help. Also, a report that told you where a variable could potentially be changed (what sprites have scripts that attempt to change it's value) and where a variable is referenced would be a big help.
Offline
Hmmm... That would be very useful! If a debugger like this would be implemented, it cuold be done in a new menu, like "extra" - including "runtime info". I think it should look like the flash output window - but again, a bit more simplified. I still think it is better to show your ideas with an image, so I 'll create another one.
Another idea might be to include "potential" errors. like: "This hide block will be repeated forever - this might slow down your project." or "You used 'set color effect to' which will work differently online".
Offline
Could be very useful!
The Green section could be very appreciated by many people - saying what is and isn't used....
Offline
That's a very good idea! Sometimes I forget about a certain variable and leave it in the project.
Offline
http://scratch.mit.edu/projects/silly_bagilly/2230568, I need this project fixed. The values are messing up.
Offline
That's a really good idea!
Offline
Whoah, this is an ancient topic! Seriously historic, really. I remember seeing this thread back in the day, but only now am I expressing my support.
silly_bagilly wrote:
http://scratch.mit.edu/projects/silly_bagilly/2230568, I need this project fixed. The values are messing up.
Perhaps you should try making your own thread to address this? It keeps the forums a bunch neater, just the way they should be.
Offline
Like Eclipse, it could tell you if something is never used in the script, would be really handy.
Offline
I agree. This would help with a few problems I sometimes have, then have to spend 5 minutes finding. I support, big time!
Offline
Even though this is ancient, I support anyways!
Offline