appsecben
  • AppSecBen
  • Awesome Links
  • tools
    • grep
    • netstat
    • nmap
    • h8mail
    • sherlock
    • BeEF
    • Wireshark
    • Scapy
    • ffuf
    • wafw00f
    • hCaptcha
    • sn1per
    • WPScan
    • searchsploit
    • Metasploit
    • wget
    • Bash Scripting
    • git
    • Docker
    • VSCode
    • Local web server
    • S3 Bucket
    • JWT
  • Links Úteis
    • Cursos
    • Ferramentas Online
    • Repositórios
    • Articles, Docs, Sites, etc
  • Infra
    • Email
    • DNS
    • Subdomain
    • Ferramentas
    • SSH
  • Tor
    • Links
    • Tor + ProxyChains Config
  • GoLang
    • Cheat Sheet
    • Install
    • Useful Links
    • Packages
    • VSCode
  • Vulns
    • Log4j
Powered by GitBook
On this page
  • Install the Extension
  • Create a .vscode/launch.json:
  • Tip

Was this helpful?

  1. GoLang

VSCode

Debug and Run with VSCode

PreviousPackagesNextLog4j

Last updated 4 years ago

Was this helpful?

Install the Extension

Create a .vscode/launch.json:

{
  "version": "0.2.0",
	"configurations": [
		{
			"name": "Launch file",
			"type": "go",
			"request": "launch",
			"mode": "debug",
			"port": 2345,
			"host": "127.0.0.1",
			"program": "${file}"
		},
		{
			"name": "Test Current File",
			"type": "go",
			"request": "launch",
			"mode": "test",
			"port": 2345,
			"host": "127.0.0.1",
			"program": "${file}",
			"env": {},
			"args": [],
			"showLog": true
		}
	]
}

Tip

Open the VsCode in you $GOPATH/src, not in the root of the $GOPATH.