Can I debug my electronic application by testing it with Spectron?

I am running tests using Spectron, mocha and chai-as-promised. My IDE is Visual Studio Code.

I run the application from the tests as follows:

this.app = new Application({
        path: electron,
        args: ['.']
    });
// Then at some point I run this.app.start()

Can I connect a Visual Studio code debugger to this application? I can start debugging my test code, but I need to debug the application at some point.

+4
source share

Source: https://habr.com/ru/post/1680036/


All Articles