Electron Debugging

    Some of the more common approaches are outlined below.

    Chromium contains logging macros which can aid debugging by printing information to console in C++ and Objective-C++.

    You might use this to print out variable values, function names, and line numbers, amongst other things.

    Some examples:

    See in Chromium’s source tree for more information and examples.

    Chromium contains a helper to print stack traces to console without interrupting the program.

    This will allow you to observe call chains and identify potential issue areas.

    Then execute:

    Now you can use for breakpoint debugging.

    Debug symbols allow you to have better debugging sessions. They have information about the functions contained in executables and dynamic libraries and provide you with information to get clean call stacks. A Symbol Server allows the debugger to load the correct symbols, binaries and sources automatically without forcing users to download large debugging files.

    For more information about how to set up a symbol server for Electron, see .