Hello,
I was following the ReadMe for https://github.com/PlayFab/gsdkSamples/tree/master/UnityMirror sample.
The MockVmAgent is set up and I can run the server with the agent both as a container and as a process. Client connects fine and goes through authentication and login, disconnects when server is stopped.
When running as a process through MockVMAgent (with option "RunContainer": false), I tried to attach a debugger to the UnityServer executable but no breakpoints are hit. Breakpoints are ignored even if I build the UnityServer with the option to copy pdb files to the build folder and all other dev. options:
Clearly there must be a more straight forward way to debug the server, not clear from the documentation how to actually do it.
Looking at:
It's clear that you can test if a server launches and works correctly and that the container is fine to be published, but how does one debug the actual server code?
What I tried is:
1. Running as a container through MockVMAgent - I can't attach the debugger not sure how to do it, or if it can be done at all.
2. Running as a process through MockVMAgent - Can attach a debugger but breakpoints never hit, not even with pdb's are copied next to the server binary. Although a bit annoying to attach this way it would be acceptable if it would work.
3. Running through the editor (this would be a dream come true) - Gives error: "Environment variable GSDK_CONFIG_FILE not defined." - Is it even possible to run the server only from the editor without using MockVMAgent? If it is than how do I solve this GSDK_CONFIG_FILE error? Not asking how to define the environment variable, I'm asking for a documentation for the expected config file.
Thank you!