How to debug the desktop app

I have contributed to joplin desktop app . But finding bugs where it lies are difficult for me . I can now find the file which can have the bug but I don't have correct way to debug the file . Like I used to put console.log statement everywhere so that I can see when & where the value of variable changes which really kills time.

Desktop app uses two stacks together : Electron & Reactjs . I don't know how to debug both of time (since I have never done worked on two stack together like this) . So how other people debug using breakpoints? May you share your way of debugging the joplin desktop app?
Thanks

console.log alone can get you pretty far, but when that's enough you can always set a breakpoint and step through code.