This repository is a fork of scratch-gui. Blink, the scratch debugger described in the master's thesis Blink: een educatieve software-debugger voor Scratch 3.0, is implemented in this repository and the scratch-debugger-vm repository.
- node.js v16.18.0 (lts Gallium)
- npm
- git
scratch-debugger-gui uses the scratch-judge as local npm package.
Clone the scratch-judge repository in the same directory where you clone(d) scratch-debugger-gui.
git clone git@github.ugent.be:scratch4d/scratch-judge.gitInstall its dependencies and build the scratch-judge package.
cd itch
npm install
npm run buildNext link this local npm package. Run this command in the scratch-judge-folder:
npm linkEvery change in the scratch-judge package needs a rebuild with npm run build for the changes to take effect in scratch-debugger-gui.
scratch-debugger-gui uses a modified version of scratch-vm, scratch-debugger-vm.
Clone the repository.
git clone git@github.ugent.be:scratch4d/scratch-debugger-vm.gitInstall and build the package:
cd scratch-debugger-vm
npm install
npm run buildNext link this local npm package. Run this command in the scratch-debugger-vm-folder:
npm linkClone the scratch-debugger-gui-repository in the same folder as where the scratch-judge repository is.
You can add the --depth=1 option because this repository contains a few big files.
git clone --depth=1 git@github.ugent.be:scratch4d/scratch-debugger-gui.gitInstall and build the scratch-debugger-gui package.
cd scratch-debugger-gui
npm install
npm run buildThe npm install command can give an error. As suggested, use --legacy-peer-deps to make it work.
Finally, execute the following command in the root of the repository.
This makes sure the local scratch-vm is being used,
instead of the one from the npm repositories.
npm link scratch-vm
The scratch GUI with debugger can be executed with the command below, in the scratch-debugger-gui-directory. It can be accessed on http://localhost:8601/ and changes to the code will immediately be visible.
npm startMake sure that the build folder contains the most recent build (see Building & development). Run this command to deploy to GitHub Pages:
npm run deployThe project will be visible on: https://github.ugent.be/pages/scratch4d/scratch-debugger-gui/.
All added icons are located in src/debugger-icons.
icon--debugger.svg: Added color #4C97FF.
See README_ORIGINAL.md for the original README of the scratch-gui-project.