Tips on solving 'DevTools was disconnected from the page' and Electron Helper dies

后端 未结 5 1552
醉梦人生
醉梦人生 2021-01-01 11:13

I\'ve a problem with Electron where the app goes blank. i.e. It becomes a white screen. If I open the dev tools it displays the following message.

In Activi

5条回答
  •  爱一瞬间的悲伤
    2021-01-01 11:41

    I encountered this issue, and couldn't figure out why the the DevTool was constantly disconnecting. So on a whim I launched Firefox Developer edition and identified the cause as an undefined variable with a string length property.

    if ( args.length > 1 ) {
        $( this ).find( "option" ).each(function () {
            $( $( this ).attr( "s-group" ) ).hide();
        });
        $( args ).show();
    }
    

    TL;DR Firefox Developer edition can identify these kinds of problems when Chrome's DevTool fails.

提交回复
热议问题