![]() code inside your InitModule function) then you need to set a breakpoint in Nakama itself before it loads your module. If you need to debug code that runs as soon as your module is loaded (e.g. Run and Debug button Breaking before the module loads ![]() With the above changes in place, go to the Run and Debug view in VS Code by clicking the button shown below. src/go), and the substitutePath:to property should be set to the name of your Go module as specified in your go.mod file (e.g. nakama/dlv -log -log-output=debugger -listen=:4000 -headless=true -api-version=2 exec nakama -config /nakama/data/local.yml -database.address depends_on : - postgres expose : - "7349" - "7350" - "7351" - "2345" healthcheck : test : interval : 10s timeout : 5s retries : 5 links : - "postgres:db" ports : - "7349:7349" - "7350:7350" - "7351:7351" - "2345:2345" - "4000:4000" restart : unless-stopped security_opt : - "seccomp:unconfined" stdin_open : true tty : true volumes : data :įrom your Visual Studio Code workspace, add a launch.json file to the. ![]() dockerfile : Dockerfile entrypoint : - "/bin/sh" - "-ecx" - > /nakama/nakama migrate up -database.address & Version : '3' services : postgres : command : postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_ack=all environment : - POSTGRES_DB=nakama - POSTGRES_PASSWORD=localdb expose : - "8080" - "5432" image : postgres:12.2-alpine ports : - "5432:5432" - "8080:8080" volumes : - data:/var/lib/postgresql/data nakama : build : context.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |