I am unable to use breakpoints or the debugger in cs50's codespace #75839
Unanswered
bstampede
asked this question in
Codespaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
I'm very new to coding, only on week 2 of cs50's intro to computer science. I had no idea that the debugger or breakpoints exist until week 2's lecture went over it. The lecture also introduced arrays and to familiarize myself with them I tried to do some of the practice problems, and try to debug with a actually debugger instead of printf. But they do not show up on the left of the lines of code. The allow breakpoints everywhere setting is on.
When I click on Run and Debug it says "All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace." I cannot download any extensions, and when I open the log in attempt to download one this message shows up in the output section of the Linux terminal
2023-11-16 21:06:02.690 [error] SyntaxError: Unexpected token ] in JSON at position 20880
at JSON.parse ()
at Object.factory (/vscode/bin/linux-x64/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/out/vs/server/node/server.main.js:158:42685)
2023-11-16 21:06:02.694 [error] Unexpected token ] in JSON at position 20880: SyntaxError: Unexpected token ] in JSON at position 20880
at JSON.parse ()
at Object.factory (/vscode/bin/linux-x64/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/out/vs/server/node/server.main.js:158:42685)
Also when I first boot up the codespace, it displays this in the output section of the Linux terminal
2023-11-16 21:08:59.529 [warning] No search provider registered for scheme: vscode-remote, waiting
2023-11-16 21:09:00.557 [warning] Settings pattern "application.experimental." doesn't match any settings
2023-11-16 21:09:00.557 [warning] Settings pattern "application." doesn't match any settings
2023-11-16 21:09:00.676 [error] command 'github.codespaces.activate' not found: n@https://assets.github.dev/stable/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/out/vs/workbench/workbench.web.main.js:1562:12330
executeCommand@https://assets.github.dev/stable/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/out/vs/workbench/workbench.web.main.js:1562:12259
In the output section of the Linux terminal there is a drop-down menu on the right side next to the "clear output" button, which has a bunch of lines and an x in the shape of a flag. In the drop-down menu there are a lot of things to select that changes what the output displays. When I select "Tasks", the output displays this.
Error: there is no registered task type 'cppbuild'. Did you miss installing an extension that provides a corresponding task provider?
When I looked up this error it said it has something to do with the debugger so I thought this would be good to put in this. I've looked and looked for discussion posts that have had the same problem I'm having and I cannot find any. I would not be surprised if the issue was very simple as I am new to coding. I tried doing a post on stack overflow but it got downvoted 3 times and went away because I put a picture of the problem I was having. Thank you to anyone that reads this.
Beta Was this translation helpful? Give feedback.
All reactions