-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goland breakpoint file line mismatch #21
Comments
my setup |
upgrade nakama&plugin-builder, it works yet.
here is my docker compose’s entrypoint config entrypoint:
- "/bin/sh"
- "-ecx"
- >
/nakama/nakama migrate up --database.address postgres:localdb@postgres:5432/nakama &&
/nakama/dlv --log --log-output=debugger,debuglineerr,gdbwire,lldbout,rpc --accept-multiclient --listen=:4000 --headless=true --api-version=2 exec /nakama/nakama -- --config /nakama/data/local.yml --database.address postgres:localdb@postgres:5432/nakama
here is my docker file
|
Whether the packaged plug-in so file is consistent with your actual current code, this is currently the only possibility. Please build dockerfile with latest code and try it again. |
Hi BOFA1ex Thanks for the reply I have tried using your docker file and compose file, and rebuilt the docker container. Still no luck, I guess i will just wait and hope this issue can go away in future updates thanks for providing such a great plugin :) |
@baledreamcastau Would you mind sharing your nakama-plugin demo repo(slim)? For better reproduce your situation, i'll check it out step-by-step. |
demo-server-main.zip Thanks for the reply Here is my server git repo, appreciate in advance ! |
@baledreamcastau i found the problem! Because in goland(vgo.dlv) fetching the remote_file_path via the virtual_psi_file(which relatived src/player.go) VirtualFileAbsolutePathxxx/GolandProjects/sortify-server-main/src/player.go VirtualFileRelativePathsrc/player.go DelveRemoteFilePathdreamcastau.com/sortify/player.go Solution:
|
Hi @BOFA1ex Thank you for taking time investigating this issue :) I have tried your second suggestion, i have moved all of my go files to outside of the src folder (their package is main still) and have my docker file updated (i noticed i have one less COPY yaml so added it int) However, my breakpoint still seems not fixed :( Did i do any step wrongly or missed any steps ? |
Here is the modified Dockerfile:
|
Still no luck, my suspicion is on the go build optimization or it has sth to do with my goland settings, or my go version. Because the breakpoint line does not match my actual file line. so i guess sth interrupted the go build process to cause the final go file built not being exactly the same as my orignial go file. But anyway the current debugging support should be enough for my project's current development phase, i will come back to investigate this issue again when im more freed up Thank you for taking time helping me ! i really appreciated it :) |
Thanks for the plugins!
I managed to breakpoint using Goland based on your plugin and documentation.
I triggered the RpcTest call from the admin local website, however my breakpoint is a bit weird, when the program hit a breakpoint, the Goland breakpoint line doesnt turn to blue like it always does. and the code line from the breakpoint data does not match my actual code file’s line (function call is at line 16 but the breakpoint data shows it is main.go:17)
here is my docker compose’s entrypoint config
here is my docker file
can you tell what i did wrongly ? thank you for your time i would really appreciate if you could help me take a look
The text was updated successfully, but these errors were encountered: