It is key to remember writing algorithms is not coding
Do not use the algorithm studio with a coding and debugging mindset
Use the studio to do lightweight tests, and if you run into errors while running an algorithm do not go on a deep bug chase.
Testing your algorithms by manual "walk throughs" is just as effective -- and/or have a tutor/instructor review your algorithm (mention the error you are getting)
If provided with an assignment, the studio is already setup. No special software tools are required -- the studio uses any web browser (already on your machine).
To start the studio, simply open this file (the "algo-studio" sub-dir is located in your given project's root directory):
As mentioned above, the algorithm studio is intended for just light play of pseudocode.
We do not want to spend too much time debugging, as that defeats the idea of algorithms.
Your algorithm might still be generally good which is the key part of algorithms.
Other Avenues to Check an Algorithm
(Best) Hand checks of your algo as described in Chapter 102, in the Examples and Problems sections under the sub-sections labeled "Walking Through Algorithm"
Send your algo to tutors/instructors for review
Try a little web browser debugging (below)
Because the Studio lives in a web browser you will have a nice debugger at your fingertips.
If we have errors in the pseudocode that is in the studio algorithm input text box, then we should get a helpful error message and the line with the problem should be highlighted.
However, if we have errors in external files we have saved, the studio error might not be as helpful, and we would then need to use the web browser debugger (see next sections).
A first try is the "console" which is often helpful.
Go to (select) the "Console" tab in the "Dev Tools" area.
If we're lucky, there will be an error (probably red) that tells us the file and line number where our problem is -- we would then go to that file and line number and look for the problem and a fix
We touched on the most common ways to find bugs in web browser, but, optionally, you might like to dive deeper via web searches for search keys like "Chrome debugger", "Firefox browser debugger", etc.
If the Studio "locks up" there is a good chance that we are in an infinite loop (e.g. have forgotten to increment/decrement a loop variable) -- I've been there.
We simply close the browser tab and reopen the studio.
This means if you have a lot of pseudocode typed into the Studio (you really shouldn't) you should first copy-off that source into a separate file on your machine.
The studio will be updated periodically -- so refreshing (re-copying into place) occasionally is a good idea. You will receive email(s) or D2L announcements about updates.