Compiling your application using
wails build -d will create a debug version of your application. This means the following:
-loglevelflag when launching your application
On Windows, the Webview component doesn’t have developer tools natively. To mitigate this (at least to some degree), a very basic console can be invoked by pressing
It’s possible to debug in Visual Studio by doing the following:
Install a recent version of Visual Studio (The free “Community” Edition is fine. The following steps are based on VS 2017). Make sure the “ASP.NET and web development” workload is selected in the installer;
Open Debug -> Attach to Process…;
Click Select… and choose Debug there code types: -> Script
Find and select the process of your DeskGap application in Available Pocesses;
Click Attach. The DOM Explorer and JavaSript Console should now show up. If not, open them in Debug -> Windows.
Many thanks to our friends over at DeskGap for this information!