alice-teacher How to debug in Alice

Don Slater dslater at andrew.cmu.edu
Tue Jan 6 15:17:06 EST 2015


Jennifer,
In Alice 2, I am using the Flight Simulator example world in for the screen shots. In this world, there is a variable "RingsAcquired” that I want to make sure that the variable value is increasing every time I fly through a ring.

if you position the runtime window so that you can see the properties panel (see attached screen shot properties) as the program runs, you will be able to see the values of the properties / variable change dynamically.

Also, If I create a variable anywhere in Alice, (not just for the world, but for an object a method or function) I can right-click on that variable and the drop down menu gives me an option to “watch" that variable. (see screen shot “watch”) When you run your world, the runtime window will open a panel with your watched variables (see screen shot “watch panel”).

Let me know if you have an other questions.

All the best,
Don Slater



“" 
> On Jan 6, 2015, at 12:04 PM, McLean, Jennifer <jmclean at klschools.org> wrote:
> 
> Hi,
>  
> As my students are creating their game programs is there any way to debug what is going on besides putting in print statements?
>  
> Thanks, Jen
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu <mailto:alice-teachers at lists.andrew.cmu.edu>
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20150106/88269487/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: properties.png
Type: image/png
Size: 85375 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20150106/88269487/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watch.png
Type: image/png
Size: 32356 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20150106/88269487/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchWindow.png
Type: image/png
Size: 178184 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20150106/88269487/attachment-0005.png 


More information about the alice-teachers mailing list