How to debug p5 mic input

I’m using the sample code on p5 website for mic input, but the screen doesn’t change on sound input - the circle doesn’t change height. I have p5.sound.js in the library folder, and another song input sample works, so there’s no issue with my mic or my library. There’s no error message though. Is there any way to tell what went wrong?

Did you check if you had authorized your browser to access to your mic ?

yes I did. there was a pop up window. I clicked yes.

Well, do you use Chrome or Safari for this ? I can’t run the sketch on Chrome if my local server whereas the online sketch run correctly ; according to the doc (https://p5js.org/reference/#/p5.AudioIn) it needs a https to be supported.
Firefox does not cause any troubles though.
Otherwise, verify every steps of your input with some console.log :

    console.log("mic active ? : " + mic.enabled)
    console.log("mic source ? : " + mic.currentSource)
    console.log("mic input ? : " + mic.input)

Maybe you will can see an error here ?

I’m using safari and the console.log is not showing as expected.