Javascript labs don't output any debug statements

I’m trying to work my way through cargo manifest javascript lab but I’m unable to debug my functions. Console.log doesn’t output to the web page’s console or the the browser’s console. The web page’s console only tells me that my functions don’t return the expected results but not what they are actually returning. I’m trying to debug to see where I’m going wrong but get no feedback in the lab.

Welcome to the forum @econtino

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Happy coding

iirc this lab had the console.log behaviour deactivated because the tests themselves generated a lot of logs

yes, console.log is deactivated

you will need to create an issue on github to request this is changed

How am I supposed to debug my code then?

Also I tried that and it kept redirecting me to the forum and losing the question I would type in.

you can use console.log to debug your code, but you are not going to see the output from the tests tho

image

if you create a topic with your code people are going to help you

the question you type in is automatically put in the forum message template, so you can post your question and your code all together

I thought you just told me console.log was deactivated?

And I know that’s what it’s supposed to do with my question but it isn’t.

if you run the tests, then you are not going to see the console.log output of function calls from the tests

it works normally in the editor

I thought that’s what you were asking about

I don’t see a way to run the lab without the tests. Also the tests are providing the data and calls I need so it doesn’t do me much good to run without the tests if I could.

when you write code in the editor it is executed automatically

write function calls inside the editor, if there are console.log involved you will see them in the console

so I basically have to also recreate the tests in order to get any output?

no, you don’t need to recreate the tests, you need to call your function

is this not something you have done so far?

it hasn’t been an issue before now

then please try to call your function, it is good practice for when you don’t have a test suite