Skip to content

[Tips] debugging

Hyunseok edited this page Jul 15, 2020 · 1 revision

Configuration Guide

Search and import "VSCode" package from Unity Asset Store

Unity-VSCode

Set a configuration like below screenshot at Preferences menu.

VSCode-Preference-Screenshot

Install "Unity Debugger" from VSCode

VSCode-UnityDebugger

How to debug

Step

  1. Mark breakpoint at Code and start Debugging(F5)
  2. Play(Ctrl+P) game at Unity

Enjoy debugging

  • Investigate values in 'Local Variables' or values what you want at 'Watch'
  • Check call stack flow
  • Debugging anything you want at 'DEBUG CONSOLE' like gdb

Example

debuggin-example