However, within the course, all I can do is change things in the code and run the tests. I’m sure this is fine for some people, but I’d like to actually debug on my own.
Ideally I’d like to use VS Code. All the guides that I have tried to read are going right over my head. I just want something simple where I can play with the things I am doing in the course.
Sorry if my question doesn’t make sense. Please let me know if I need to give more info.
the fcc environment has console frame and if you put console.log("something") you can see its output, thus, you can output for example a particular function with your own parameters and see what it returns. Isnt that what you want to achieve?
Ive grew so used to code in the FCC environment that i often find myself going to a random FCC challenge and test simple code there, whenever i create some function for a project, or whatever
console.log(yourVariable) and your browser’s developer tools are your friends, as @Sylvant and @snowmonkey pointed out.
Other than that, I second your idea of using VS code. It’s quite beginner-friendly in my opinion, and you can install the free version of the Quokka extension to visualize variables’ value in real time.
You can solve the challenges in VS code and then copy/paste your solutions in the freeCodeCamp code window.
Hope that helps.
That looks really interesting! I’m afraid that there is a super steep learing curve for VS Code, though. I’ve installed that extension and when I try to run it on a file, some error messages popped up but then disappeared too quickly for me to read. There must be a log of those errors somewhere. I’m afraid this isn’t the best place to get help on this, though. Seems like there was something about node not being installed? Do I have to have some sort of Node.js installed or running?
I’m afraid without the error messages there is not so much I can do to help you, but I’m sure that with time you will figure it out.
I didn’t know RunJS though (thanks @Marmiz ) and it may be a more simple and immediate alternative…you may want to check it out.
It been a bit since i installed quokka, but yes i believe you need node.js installed for it to work. There was a nice video on some nice tips for using VS code that shows how useful it can really be once you get deeper into it.
Thanks! Just finished it and it is indeed very helpful. His channel looks good too.
Thanks! Just to follow up, in order for Quokka to work, you have to have node.js installed on the machine (not as an extension to VS Code). It is really not clear that this is a requirement, but I eventually figured it out. It is probably obvious to a non-beginner. If you need to install it, here is the link: Download | Node.js