Hello, I’m making a little game in Unity and I want to use
Visual Studio debugger to step into Unity DLL (i.e. UnityEngine.dll)
to learn how some things are implemented.
However when I use in debugging F11 the code “jump over” and doesn’t go
into Unity inner statement…
Is there a way to make that?
Thanks.
For example if I write Debug.Log(“X”); and I want to have a look inside Log method
when the debugging step reaches this statement…
Unity’s source code is a combination of C++ and C#. Code written in C++ can’t be viewed without a source license but you can view the C# code at the following official repository. Just don’t be too surprised when you open the source with the method you want to examine only to discover the method is one line calling C++. It’s a common occurrence.
What are your end goals here? As Ryiah stated, there’s a lot of C++ calls that you can’t get access to without source access, so maybe there’s another way to accomplish your specific goal?
Yes I know! My goal is only to debug programs easier…
Take a look a this post for a more complete example. It’s good but not very comfortable.
JetBrains Rider make the stuff I want but I have Visual Studio, that’s free, and I don’t want spend money…