-
-
Notifications
You must be signed in to change notification settings - Fork 648
Debugging Tips
William O'Beirne edited this page Jun 25, 2018
·
1 revision
This page encompasses some of the useful tips and tricks we discover along the way that help with debugging.
If you're planning on debugging anything in the app, you'll have a much easier time with the React DevTools and Redux DevTools Chrome extensions. The former shows minified components, and the latter isn't enabled in production.
If an issue is only reproducible in the production build of the Electron app, simply run it from the command line with the logging flag enabled. For example:
./dist/electron-builds/mac/MyCrypto.app/Contents/MacOS/MyCrypto --enable-logging
It may differ from OS to OS.
If something's not working and you're not sure what, be sure to flip on debug: true
in shared/enclave/server/wallets/trezor.ts
with the Trezor.js library. It'll spit out much more information.