New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag to specify workdir of debug binary #295

Closed
yuntan opened this Issue Nov 19, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@yuntan

yuntan commented Nov 19, 2015

I want command line flag to specify working directory of the program, for example

dlv --wd=/path/to/workdir debug

runs debug binary in /path/to/workdir.

yuntan added a commit to yuntan/delve that referenced this issue Nov 19, 2015

proc: Add `wd` to Launch
This change adds the `wd` arg which specify working directory of the
program.

Fixes #295

yuntan added a commit to yuntan/delve that referenced this issue Nov 19, 2015

service/debugger: Add `Wd` field to debugger.Config
This change adds the `Wd` field which specify working directory of the
program launched by debugger.

Fixes #295

yuntan added a commit to yuntan/delve that referenced this issue Nov 19, 2015

service: Add `Wd` to service.Config
This change adds the `Wd` field which specify working directory of the
program debugger will launch.

Fixes #295

yuntan added a commit to yuntan/delve that referenced this issue Nov 19, 2015

cmd/dlv: Add `Wd` flag
This change adds `Wd` flag which specify working directory of the
program which launched by debugger.

Fixes #295
@yuntan

This comment has been minimized.

Show comment
Hide comment
@yuntan

yuntan Nov 19, 2015

This changes works for me (on linux).
yuntan/delve@master...yuntan:90ec527
But still work in progress. Remaining tasks

  • work for darwin
  • work for exec, test subcommands
  • write some tests

yuntan commented Nov 19, 2015

This changes works for me (on linux).
yuntan/delve@master...yuntan:90ec527
But still work in progress. Remaining tasks

  • work for darwin
  • work for exec, test subcommands
  • write some tests
@ctaggart

This comment has been minimized.

Show comment
Hide comment
@ctaggart

ctaggart Apr 29, 2016

@yuntan What do you need to do to move this forward? It would be super helpful to have when using Visual Studio Code with Go. Can you create a pull request and mark it as work in progress? I can test it on my iMac.

ctaggart commented Apr 29, 2016

@yuntan What do you need to do to move this forward? It would be super helpful to have when using Visual Studio Code with Go. Can you create a pull request and mark it as work in progress? I can test it on my iMac.

@ctaggart ctaggart referenced this issue Apr 29, 2016

Closed

[WIP] ability to set the working directory #521

3 of 6 tasks complete

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 3, 2016

proc: Add `wd` to Launch
This change adds the `wd` arg which specify working directory of the
program.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 3, 2016

service/debugger: Add `Wd` field to debugger.Config
This change adds the `Wd` field which specify working directory of the
program launched by debugger.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 3, 2016

service: Add `Wd` to service.Config
This change adds the `Wd` field which specify working directory of the
program debugger will launch.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 3, 2016

cmd/dlv: Add `Wd` flag
This change adds `Wd` flag which specify working directory of the
program which launched by debugger.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 30, 2016

proc: Add `wd` to Launch
This change adds the `wd` arg which specify working directory of the
program.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 30, 2016

service/debugger: Add `Wd` field to debugger.Config
This change adds the `Wd` field which specify working directory of the
program launched by debugger.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 30, 2016

service: Add `Wd` to service.Config
This change adds the `Wd` field which specify working directory of the
program debugger will launch.

Fixes #295

rustyrobot added a commit to rustyrobot/delve that referenced this issue Oct 30, 2016

cmd/dlv: Add `Wd` flag
This change adds `Wd` flag which specify working directory of the
program which launched by debugger.

Fixes #295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment