Skip to content
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

Env vars not available in dlv in Mac while using the default --backend=lldb option #818

Closed
ramya-rao-a opened this issue May 3, 2017 · 1 comment

Comments

@ramya-rao-a
Copy link
Contributor

  1. What version of Delve are you using (dlv version)? 0.12.2 (installed using brew install --HEAD)
  2. What version of Go are you using? (go version)? 1.8
  3. What operating system and processor architecture are you using? Mac OS X El Capitan (10.11.6)
  4. What did you do? Run dlv debug or dlv debug --backend=lldb on a package with a single file with contents from Environment variables undefined during debug. microsoft/vscode-go#947 (comment)
  5. What did you expect to see? The PATH to be printed out and SHA details to be printed out.
  6. What did you see instead? PATH is empty and error fetching git executable as it is not found in the PATH

Works fine with --backend=native.

@ramya-rao-a ramya-rao-a changed the title Env vars not available in dlv while using the default --backend=lldb option Env vars not available in dlv in Mac while using the default --backend=lldb option May 3, 2017
@ramya-rao-a ramya-rao-a reopened this May 3, 2017
aarzilli added a commit to aarzilli/delve that referenced this issue May 4, 2017
debugserver requires a special option to forward the environment to the target.

Fixes go-delve#818
@ramya-rao-a
Copy link
Contributor Author

Thanks! Just confirmed the fix :)

abner-chenc pushed a commit to loongson/delve that referenced this issue Mar 1, 2024
debugserver requires a special option to forward the environment to the target.

Fixes go-delve#818
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants