Basic VSCode configuration for building and debugging (#2483)
* Basic VSCode configuration for building and debugging * Fix building and debugging in Windows * Move to contrib folder and add instructions
This commit is contained in:
parent
8c3a2e817b
commit
4c2b1be3a4
6 changed files with 105 additions and 1 deletions
|
@ -500,7 +500,11 @@ func DateLang(lang string) string {
|
|||
|
||||
// execPath returns the executable path.
|
||||
func execPath() (string, error) {
|
||||
file, err := exec.LookPath(os.Args[0])
|
||||
execFile := os.Args[0]
|
||||
if IsWindows && filepath.IsAbs(execFile) {
|
||||
return filepath.Clean(execFile), nil
|
||||
}
|
||||
file, err := exec.LookPath(execFile)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue