Hello, so I have a function like this for debugging: Code (CSharp): private void MyLog(object o) { Debug.Log(o);// inside MyLog Console.Log(o); } Console is just an ingame console so I can see Debug.Log(...) outside of editor. Problem: if I call for example: MyLog("Hello"); and double click on it in unity editor Console window it is gonna point me to this line of code: Debug.Log(o);// inside MyLog I'd like it to ignore that stack trace and point me to the MyLog("hello"); line in code instead. Is that possible somehow?
It would appear not: https://feedback.unity3d.com/suggestions/editor-clickable-stacktrace-on- If you single click on the debug log in the console, the stack trace is given in the detail view beneath. But you have to manually navigate to the location.
If the helper method is in a .dll without source, then console would ignore those. So you could create a dummy binary that had just that helper method. import the .dll under your plugins folder and then double clicking in the console would ignore your helper and open the calling method. Exactly what the OP wants. Would be nice to create an attribute one could add to their methods they wanted excluded from stack trace. The console window would show those lines in black and not links. It should be straightforward to implement. Unity, please!