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:
Lauris BH 2017-09-12 15:27:44 +03:00 committed by Lunny Xiao
parent 8c3a2e817b
commit 4c2b1be3a4
6 changed files with 105 additions and 1 deletions

View file

@ -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
}