Search Unity

Is it possible to copy the debug console through script?

Discussion in 'Scripting' started by Tiki, Feb 27, 2015.

  1. Tiki

    Tiki

    Joined:
    Mar 3, 2013
    Posts:
    299
    Is there any way to access the displayed debug log errors in the console without snipping directly from the editor log?
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
  3. Tiki

    Tiki

    Joined:
    Mar 3, 2013
    Posts:
    299
    I'm looking into it now, I'm not entirely sure I understand where it's calling from, I'm going to give it a test.

    I'd need it to be able to call debug logs from the editor out of runtime, I think this would only get me halfway since it's rooted in Application?

    Basically I'm looking to copy simple debug messages like "Array index out of range" LogError type messages to a string.

    Update: I think I found something, thank you for the advice.

    https://gist.github.com/mminer/975374

    I can digest that enough to build my own similar system.
     
    Last edited: Feb 27, 2015