This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Disable certain blocks while coding to aid in testing/debugging

#1 2011-09-18 12:00:06

cpumaster930
Scratcher
Registered: 2009-02-23
Posts: 100+

Disable certain blocks while coding to aid in testing/debugging

Today I was testing out a game I'm working on, and found that the most probable cause of the error was a couple of blocks in the middle of a long script...I had to remove all the blocks below the possible errors, the remove the errors, then put the lower half back--only to find that those blocks weren't the cause of the problem at all!  It got annoying to have to repeat that process until I finally found the error after several tries.

This feature would allow you to right-click a block and click 'disable' from a drop-down menu.  The block would appear grayed-out, but still present: it would appear in the code but wouldn't affect the script at all.  If you wanted to enable a block again and restore its functionality, just right-click and select 'enable', and voila--the block works again.

This feature would be quite useful when developing experimental features in projects, such as additional visual effects, items in games, game modes, etc.--all without removing any blocks.

Additionally, there could be a feature that saves a copy of the project without all the disabled scripts--this could save space in the finished project for uploading, while keeping the disabled scripts in the original project in case you want to expand your project with the disabled experimental features.

I think this would greatly help new Scratchers determine problems in their scripts, and think the Scratch Team should consider adding this in Scratch 2.0.

Discuss?


http://i.imgur.com/Qd0lu.png

Offline

 

#2 2011-09-18 12:28:23

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Disable certain blocks while coding to aid in testing/debugging

This is a great idea! Like putting code in comments in most languages.  tongue

Offline

 

#3 2011-09-18 12:36:00

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Disable certain blocks while coding to aid in testing/debugging

this is my suggestion!  tongue
created few days ago... should I add you both as supporters?

Offline

 

#4 2011-09-18 12:40:17

cpumaster930
Scratcher
Registered: 2009-02-23
Posts: 100+

Re: Disable certain blocks while coding to aid in testing/debugging

roijac wrote:

this is my suggestion!  tongue
created few days ago... should I add you both as supporters?

I didn't see that xD

But sure, I definitely support  big_smile


http://i.imgur.com/Qd0lu.png

Offline

 
  • Index
  •  » Suggestions
  •  » Disable certain blocks while coding to aid in testing/debugging

Board footer