#1265 Support debug IDE config

This commit is contained in:
Lea Anthony
2022-03-16 21:13:56 +11:00
parent 1996e8b2ba
commit 78212603bc
3 changed files with 46 additions and 3 deletions
@@ -30,7 +30,7 @@
<property name="settings.editor.selected.configurable"
value="reference.settingsdialog.IDE.editor.colors.Console Font"/>
</component>
<component name="RunManager" selected="Go Build.{{.ProjectName}} (dev)">>
<component name="RunManager" selected="Go Build.{{.ProjectName}} (debug)">>
<configuration name="{{.ProjectName}} (dev)" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="{{.ProjectName}}"/>
<working_directory value="$PROJECT_DIR$"/>
@@ -45,6 +45,22 @@
<method v="2">
</method>
</configuration>
<configuration name="{{.ProjectName}} (debug)" type="GoApplicationRunConfiguration"
factoryName="Go Application">
<module name="{{.ProjectName}}"/>
<working_directory value="$PROJECT_DIR$"/>
<go_parameters
value="-ldflags &quot;{{.WindowsFlags}}&quot; -tags desktop,production,debug -o {{.PathToDesktopBinary}}"/>
<useCustomBuildTags value="true"/>
<envs>
<env name="CGO_ENABLED" value="&quot;{{.CGOEnabled}}&quot;"/>
</envs>
<kind value="DIRECTORY"/>
<directory value="$PROJECT_DIR$"/>
<filePath value="$PROJECT_DIR$"/>
<method v="2">
</method>
</configuration>
<configuration name="{{.ProjectName}} (production)" type="GoApplicationRunConfiguration"
factoryName="Go Application">
<module name="{{.ProjectName}}"/>
@@ -2,7 +2,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Wails: Debug {{.ProjectName}}",
"name": "Wails: Production {{.ProjectName}}",
"type": "go",
"request": "launch",
"mode": "exec",
@@ -10,6 +10,16 @@
"preLaunchTask": "build",
"cwd": "${workspaceFolder}",
"env": {}
},
{
"name": "Wails: Debug {{.ProjectName}}",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/{{.PathToDesktopBinary}}",
"preLaunchTask": "build debug",
"cwd": "${workspaceFolder}",
"env": {}
}
]
}
@@ -11,7 +11,24 @@
"args": [
"build",
"-tags",
"dev",
"production,desktop",
"-gcflags",
"all=-N -l",
"-o",
"{{.PathToDesktopBinary}}"
]
},
{
"label": "build debug",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}"
},
"command": "go",
"args": [
"build",
"-tags",
"production,desktop,debug",
"-gcflags",
"all=-N -l",
"-o",