mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
fix: add vscode local debugging support (#2585)
This commit is contained in:
parent
86dea71efd
commit
c542929835
2
.gitignore
vendored
2
.gitignore
vendored
@ -18,7 +18,7 @@ bin/
|
|||||||
|
|
||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
.vscode/
|
.vscode/settings.json
|
||||||
|
|
||||||
tmp/
|
tmp/
|
||||||
tmpFiles/
|
tmpFiles/
|
||||||
|
15
.vscode/launch.json
vendored
Normal file
15
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Debug",
|
||||||
|
"type": "go",
|
||||||
|
"request": "launch",
|
||||||
|
"mode": "auto",
|
||||||
|
"program": "${workspaceFolder}",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"debugAdapter": "dlv-dap",
|
||||||
|
"args": ["--createDatabase=true"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
3
Makefile
3
Makefile
@ -86,6 +86,9 @@ docker-build: ## Build docker image with the manager.
|
|||||||
docker-push: ## Push docker image with the manager.
|
docker-push: ## Push docker image with the manager.
|
||||||
docker push ${REGISTRY}/${IMG}:${IMG_TAG}
|
docker push ${REGISTRY}/${IMG}:${IMG_TAG}
|
||||||
|
|
||||||
|
deps: ## Run dependencies for local development
|
||||||
|
docker compose up -d db
|
||||||
|
|
||||||
lint-install: ## Install golangci-lint
|
lint-install: ## Install golangci-lint
|
||||||
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
|
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
|
||||||
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.40.1
|
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.40.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user