Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Honor the 'cwd' launch configuration argument #714

Merged
merged 1 commit into from
Jan 11, 2017
Merged

Honor the 'cwd' launch configuration argument #714

merged 1 commit into from
Jan 11, 2017

Conversation

ankon
Copy link
Contributor

@ankon ankon commented Jan 6, 2017

Fixes #710

@msftclas
Copy link

msftclas commented Jan 6, 2017

Hi @ankon, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@ankon
Copy link
Contributor Author

ankon commented Jan 6, 2017

Testing done: "Launch extension", then open the workspace that contains the go file from the issue, debug it, and verify that the output is what we expected.

I'm not sure how to write an automated test for this, and would need help (or at least some pointers) for that.

Copy link
Contributor

@mattetti mattetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per the delve code base:

RootCommand.PersistentFlags().StringVar(&WorkingDir, "wd", ".", "Working directory for running the program.")

https://github.com/derekparker/delve/blob/master/cmd/dlv/cmds/commands.go

LGTM

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jan 11, 2017

Thanks for the PR @ankon and thanks for taking a look @mattetti

@ramya-rao-a ramya-rao-a merged commit dec8108 into microsoft:master Jan 11, 2017
mattetti added a commit to mattetti/vscode-go that referenced this pull request Jan 16, 2017
…ild-i

* 'master' of github.com:Microsoft/vscode-go:
  Moved debugging doc to a separate wiki
  Make a copy of process.env when setting VSCODE_GOTOOLS
  Debugger cannot read settings
  Improve error handling of test coverage (microsoft#721)
  Use proper plurality in output (microsoft#720)
  Fixes microsoft#303 Dont run test if current file is  not test file
  Added a note on how to debug single tests
  Allow Go tools to be installed in a separate GOPATH (microsoft#351)
  Fix typo in README.md (microsoft#715)
  Honor the 'cwd' launch configuration argument (microsoft#714)
@ankon ankon deleted the pr/710-cwd-debug branch December 9, 2017 09:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants