JoshMarler / react-juce

Write cross-platform native apps with React.js and JUCE
https://docs.react-juce.dev
MIT License
763 stars 79 forks source link

Any ways to view Duktape Javascript console? #313

Closed gabriel-earle closed 9 months ago

gabriel-earle commented 9 months ago

Hello,

I'm working on building a plugin with React Juce. How can I hook up console logging? Right now, my terminal that is running webpack (npm run start -> webpack -w --mode=development) just shows webpack information For example if my component has:

useEffect(()=> console.log("hello"), [])

I can not find where this is being logged. How do I find these logs?

Thanks for the help!

Gabe

gabriel-earle commented 9 months ago

Oh I have found some more information!

I see that if I run the standalone from the console, I can see console logs in that console. And if I want more debugging capabilities, I can setup the Duktape Debugger in VS Code.

Thanks for making and open sourcing this project!