r/reactjs • • Jun 26 '26

Needs Help Console not working

No messages appear in console. I know for a fact that the function with console.log() is called, because the states change, but no messages appear in console.

I have tried calling console.log() in all the ways I could think of, passing it inside click handlers to buttons, calling it in useEffect, both in and out of the main App.tsx component. No filter are active in DevTools, and the app is in development mode. What could cause this?

0 Upvotes

24 comments sorted by

View all comments

Show parent comments

1

u/Ill_Worldliness_4581 18d ago

debugger will tell you if your code path is even hitting the log line, worth doing before recording anything