

Pictured: An actual crash in SlackĪrmed with that information, we'll get two things: First, the same binary your user was using. If your app is named MyApp.exe, you should see it and its version listed. Visual Studio will display generic information about the crash in the upper area of the screen and a list of loaded modules below. Once you have Visual Studio installed, open your crash dump. To be fair, checking out Electron locally is a pretty daunting task and takes multiple hours, so I'll explain an online alternative, too.

Have them send it to you.Ĥ) Optional: Electron Source If you want to see the actual line of code that made your app crash in Visual Studio, you'll need to have the code. It'll likely contain a few files – if your app is named MyApp.exe, your user should be looking for a file like. Alternatively, try out the VM explained above.ģ) Crash Dump Your user can find it by opening %LOCALAPPDATA%\CrashDumps in Windows Explorer. If you don't already have it, you might qualify for the free Community edition. Good news: If you don't already have one, Microsoft offers a free VM with Visual Studio and all required developer tools pre-installed.Ģ) Visual Studio You could use other tools, but Visual Studio is king here. I use this process below to debug Slack's native crashes – and you could too, if that's the kind of fun you're into! Sweet, sweet, crash information Things you needġ) Windows Debugging native code is complicated enough, there's no reason to make your life more difficult by trying to do it on a non-Windows machine. In this short tutorial, I'll explain how you go from a mythical crash on a user's machine to looking at the offending line of C++.īy the way: You can do this with other people's Electron apps, too. A customer of yours is complaining that the app crashes – and you're stuck wondering what happened, unsure how to debug the issue from afar. If you're releasing or using Electron apps on Windows, you'll sooner or later encounter your first native crash. Felix Rieseberg Debugging Native Crashes in Electron Apps on Windows Electron, Desktop, Windows
