-
Go to https://github.com/robandpdx/octokit-js-demo > Code > Create codespace..
-
Give it a few minutes to set up.
-
Rename env.orig to .env and populate with your PAT and org name.
-
Add breakpoints in script.js.
-
From the VSCode left menu > Run and Debug > JavaScript Debug Terminal.
-
From the terminal, run:
unset GITHUB_TOKEN
npm install
node.script.js
- Step through the breakpoints.