Electron.net: How to Debug the js file

Created on 23 Jan 2018  路  6Comments  路  Source: ElectronNET/Electron.NET

In my project ,i feel my js file bring some erro ,but i can't debug withd the vs2017,and the chrome debug is also don't work. Tell me some help .I think is a important tools.Thanks

question

Most helpful comment

Hi lyy0808,
use the Chrome Developer Tools direct from the Electron.NET App.

You can open this via code with:
Electron.WindowManager.BrowserWindows.First().WebContents.OpenDevTools()

Documentation for debugging with the Chrome Developer Tools:
https://developers.google.com/web/tools/chrome-devtools/javascript/

I hope my answer helps you.

All 6 comments

@GregorBiswanger ?

Hi lyy0808,
use the Chrome Developer Tools direct from the Electron.NET App.

You can open this via code with:
Electron.WindowManager.BrowserWindows.First().WebContents.OpenDevTools()

Documentation for debugging with the Chrome Developer Tools:
https://developers.google.com/web/tools/chrome-devtools/javascript/

I hope my answer helps you.

Thank you ,it's ok

@GregorBiswanger sir I want to close my developer tool on click cntrl + shift + I

WebPreferences = new WebPreferences
{
DevTools = false
}
I am use this code........but it not work for me

My editor is Visual studio 2019 with Angular fronted
At the time exe package create 3 folder local , swiftshader , resources but in resources folder bin folder is create how to remove it??

Was this page helpful?
0 / 5 - 0 ratings

Related issues

himansu-Bhusan93 picture himansu-Bhusan93  路  3Comments

philiphobgen picture philiphobgen  路  3Comments

GregorBiswanger picture GregorBiswanger  路  4Comments

iqmeta picture iqmeta  路  3Comments

BrianAllred picture BrianAllred  路  5Comments