mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Update to work with latest VS Code go debugger (#18397)
This commit is contained in:
		@@ -7,10 +7,10 @@
 | 
				
			|||||||
      "request": "launch",
 | 
					      "request": "launch",
 | 
				
			||||||
      "mode": "debug",
 | 
					      "mode": "debug",
 | 
				
			||||||
      "buildFlags": "",
 | 
					      "buildFlags": "",
 | 
				
			||||||
      "port": 2345,
 | 
					 | 
				
			||||||
      "host": "127.0.0.1",
 | 
					 | 
				
			||||||
      "program": "${workspaceRoot}/main.go",
 | 
					      "program": "${workspaceRoot}/main.go",
 | 
				
			||||||
      "env": {},
 | 
					      "env": {
 | 
				
			||||||
 | 
					        "GITEA_WORK_DIR": "${workspaceRoot}",
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      "args": ["web"],
 | 
					      "args": ["web"],
 | 
				
			||||||
      "showLog": true
 | 
					      "showLog": true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -20,10 +20,10 @@
 | 
				
			|||||||
      "request": "launch",
 | 
					      "request": "launch",
 | 
				
			||||||
      "mode": "debug",
 | 
					      "mode": "debug",
 | 
				
			||||||
      "buildFlags": "-tags='sqlite sqlite_unlock_notify'",
 | 
					      "buildFlags": "-tags='sqlite sqlite_unlock_notify'",
 | 
				
			||||||
      "port": 2345,
 | 
					 | 
				
			||||||
      "host": "127.0.0.1",
 | 
					 | 
				
			||||||
      "program": "${workspaceRoot}/main.go",
 | 
					      "program": "${workspaceRoot}/main.go",
 | 
				
			||||||
      "env": {},
 | 
					      "env": {
 | 
				
			||||||
 | 
					        "GITEA_WORK_DIR": "${workspaceRoot}",
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      "args": ["web"],
 | 
					      "args": ["web"],
 | 
				
			||||||
      "showLog": true
 | 
					      "showLog": true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user