Skip to content

Instantly share code, notes, and snippets.

@skplunkerin
Last active July 3, 2020 17:13
Show Gist options
  • Save skplunkerin/dc922b0caa69cfbc5c3d5a9547a562db to your computer and use it in GitHub Desktop.
Save skplunkerin/dc922b0caa69cfbc5c3d5a9547a562db to your computer and use it in GitHub Desktop.
vscode delve dlv breaking debug mode debugger

VS Code GO - Delve error:

NOTE: /.../ is the full path to my project.

Error message:

could not launch process: open /.../cmd/server/debug.test: no such file or directory
could not remove /.../cmd/server/debug.test: remove /.../cmd/server/debug.test: no such file or directory
Process exiting with code: 1

Some ways that have (sometimes) fixed it:

  1. Remove all breakpoints & try again

  2. Open launch.json

    source

    • comment out "cwd"... line
    • try running it
    • uncomment the line
    • run it again
  3. Open command pallette (cmd + shift + P)

    can't find original source

    • select Go: Install/Update Tools
    • choose dlv and install it
    • run it again
  4. Quit VS Code & re-open

    • run it again
  5. No idea... restart computer and pray it'll work again?

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