Compile in debug mode

Options
Hi everyone,

When i make a build of my project i saw that some/all assemblies of Photon are built in Debug mode. I tried to find how to disable this debug mode with no success.




Have you any idea?

Thanks

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @SirKrow,

    How can we reproduce this? minimal repro steps.
    What is the PUN version?
    What is the Unity version?
    What is the target platform, player settings and build settings?
  • SirKrow
    Options
    I'm working with Unity for processionnal purpose, so we have a script to make the build. It check if the assemblies of the project are in Debug mode.
    Pun version : 2.14
    Unity version : 2019..11f
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @SirKrow,

    I see.

    So this is a constraint or limit from a third party software.
    Not sure how does this tool or Editor extension detect the debug mode of builds.

    Could you disable it or bypass it?
    May I know why you need it?
    Are you concerned about security or performance reasons?

    PhotonUnityNetwork.Utilities and PhotonWebSocket are generated by Unity as a result of the asmdef.
  • SirKrow
    Options
    i can't bypass or disable it, It is needed for make the sofware build with special option and for improve performance.
    Actually i can build with the "normal way" without any problem.
    But for the "script way" i have needed to exclude :
    • - PhotonUnityNetworking.Utilities
    • - PhotonWebSocket
    • - PhotonRealtime
    • - PhotonUnityNetworking
    • - PhotonChat
    • - Photon3Unity3D
    All of them are built in debug mode.
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited September 2019
    Options
    Hi @SirKrow,

    I need to know more about the "script way" software you use to build.
    We need a way to reproduce this.
    If you can't share sensitive or private information you could send us an email to developer@photonengine.com
  • SirKrow
    SirKrow
    edited September 2019
    Options
    Hi @JohnTube ,

    I'll ask to my boss if i can send you that, is that the good email address or u mean developer@photonengine.com?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    developer@photonengine.com yes, of course, there was a typo.
  • SirKrow
    Options
    Mail sended
  • Tobias
    Options
    You are right: Our managed dlls are included as debug.
    So far, it's not been a problem. We don't usually provide release libs, as it's messy to keep them in Unity. Unless you require release libraries for the platform, I think we would stick to the debug versions.

    In your checker code, I see: The assemblies "PhotonWebSocket", "PhotonRealtime", "PhotonUnityNetworking" and "PhotonChat" are excluded from checking, even though they are built by Unity.
    So even anything Unity generates is in debug mode. This will be the "hot path" in your project, not Photon, which is used a few times each second.