Can i run a debugger running okteto up?

While developing running okteto up, is there a way to debug my application and set breakpoints with VSCode?

Ey Tere,

In order to attach debugger session in go, you need to set up the file .vscode/launch.json like so:

	"version": "0.2.0",
	    "configurations": [
	            "name": "okteto build",
	            "type": "go",
	            "request": "launch",
	            "mode": "debug",
	            "program": "${workspaceFolder}/main.go",
	            "cwd": "/Users/tere/movies",
	            "args": ["build"],
							"env": {

This will run the CLI command build, with cwd the movies repository, using the environment variables described at env config. You can add breakpoints at the code and the debugger will stop when running the command. ${workspaceFolder} will be replaced by the path to the okteto repository, you can also use absolute paths as in the cwd config.