need
I want to see the values of some local variables in a certain place. It is too troublesome to write them out one by one with Debug.Log, so I want to use vs to debug, as shown in the figure below
Steps
- Break point on the left in the vs script
- Click on "Attach to Unity" above
- A dialog box pops up in unity, asking you whether to use debug mode, three options, namely "current session (session)", "whole project (project)", "cancel". Select the current session.
- Click the play button in unity
- View variable data and custom monitoring variables in vs