Detailed Debug Info in Standalone

Hi folks,

I want to write my own debug-log viewer for standalone builds so I can extend it as needed. I’m using the following method to get a dynamic list and display it in “OnGUI”, which is working well.

However, this doesn’t tell me the specific line where errors are occurring. Is this possible with this method, or otherwise is there a better solution?
(Please note I am aware of the Asset Store solutions and would prefer to implement my own if possible)

Cheers!

    void OnEnable() {
        Application.logMessageReceived += handle_log;
    }
    void OnDisable() {
        Application.logMessageReceived -= handle_log;
    }
    void handle_log(string logString, string stackTrace, LogType type) {

            log_output = logString;
            log_stack = stackTrace;

            all_logs.Add (log_output + " " + log_stack);

    }

If you package the log stuff into a DLL it will point to the correct line as it will only show the current assemblies output not the DLL. That is the only way I know other than a bunch of other workarounds to get it to traverse the stack trace to the correct line.

Also not to sound like a jerk, but A simple google search returned quite a few results that gave me the answer(I had looked it up before so I knew the answer.)

Thanks.
I’m on OSX so it may add an extra level of complexity dealing with DLLs. I’ve been trawling the forums and haven’t found much of practical use aside from the above code. Could you give a working example or point me in the right direction for traversing the stack trace to the correct line as you’ve suggested?

Not sure about that all my self, I don’t own a mac. On this page it talks about making a DLL on a mac. https://docs.unity3d.com/Manual/UsingDLL.html

As for the workaround It doesn’t quite work. After reading more it only highlights the object in the editor and goes to the line in the wrapper. Here is the link to the post, http://answers.unity3d.com/questions/176422/debug-wrapper-class.html

Thanks, the DLL stuff is a bit beyond my skills. If anyone has a simpler solution I’d love to hear!