- Home /
Question by
elenzil · Jun 26, 2017 at 08:32 PM ·
debug.logsource code
Debug.Log() - specify the source-code link ?
One great thing about Debug.Log() is that if you double-click the line printed out in the unity console, it opens MonoDevelop and navigates to that line.
I'm wrapping Debug.Log() in my own set of functions, and while i can manipulate the stack-trace to print-out the source of the log line, i don't know of any way to change the linked-to line for the console. So if you double-click on one of these lines, instead of going to the code which originated the log line, Mono opens on the logging wrapper.
If there a way to alter the line of source-code which a given Debug.Log() links to ?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612124937im_/https://answers.unity.com/themes/thub/images/avi.jpg)