Search Unity

Question Question about using and displaying Debug.Log() in a build?

Discussion in 'Scripting' started by Latchh, Apr 20, 2021.

  1. Latchh

    Latchh

    Joined:
    Aug 10, 2020
    Posts:
    49
    Hi,

    I want to know if it is possible to display the output of any Debug.Log() statements in a (development) build in the same way as you would see them in the editor console.

    I know that the outputs are sent to a text file, and that anything using Debug.LogError() will actually display in the dev console for dev builds, but I am wondering if there is some in-built support for having the dev console in builds also display the output from regular Debug.Log() statements, or if the simplest solution for me is to just change every Debug.Log I need to see the output of into a Debug.LogError.

    Thanks
     
  2. Pwnjabba

    Pwnjabba

    Joined:
    Sep 10, 2014
    Posts:
    1
    I had the same question earlier today, this worked like a charm for me.
     
  3. screenshot1.png

    Just connect it to the editor and enjoy your logs in the editor's console. The best way to do it. Or you can check the log file.