feat(dev): debugger configuration

This commit is contained in:
Guz
2024-10-11 22:30:13 -03:00
parent 78718c29bf
commit d9eb24b9cd
2 changed files with 25 additions and 0 deletions

20
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch APP",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/main.go"
},
{
"name": "Launch APP (Dev)",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/main.go",
"args": [ "-dev" ]
}
]
}

View File

@@ -24,11 +24,15 @@
in {
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
CGO_ENABLED = "0";
hardeningDisable = ["all"];
buildInputs = with pkgs; [
# Javascript tools
eslint_d
nodejs_22
nodePackages_latest.eslint
# Go tools
go
gofumpt
@@ -37,6 +41,7 @@
gotools
delve
(templ system)
# Sqlite tools
sqlite
lazysql