개발 시 사용자가 빌드한 웹 플레이어, 타겟 디바이스 또는 에디터의 로그에서 정보를 얻고 싶은 경우가 있을 수 있습니다. 일반적으로 문제가 발생하면 파일을 보고 어디에서 문제가 발생했는지를 명확하게 확인해야 합니다.
macOS에서 플레이어와 에디터의 로그는 공통적으로 표준 Console.app 유틸리티를 통해 확인할 수 있습니다.
Windows에서 에디터의 로그는 기본적으로 Windows 탐색기의 숨겨진 폴더에 저장됩니다. 다음을 참조하십시오.
에디터 로그를 보려면 Unity의 콘솔 창에서 Open Editor Log 를 선택해야 합니다.
OS | 로그 파일 |
---|---|
macOS | ~/Library/Logs/Unity/Editor.log |
Windows | C:\\Users\\username\\AppData\\Local\\Unity\\Editor\\Editor.log |
macOS에서 모든 로그는 공통적으로 표준 Console.app 유틸리티를 통해 확인할 수 있습니다.
Windows에서 에디터 로그 파일은 로컬 애플리케이션 데이터 폴더에 저장됩니다. <LOCALAPPDATA>\Unity\Editor\Editor.log에서 <LOCALAPPDATA>는 CSIDL_LOCAL_APPDATA에 의해 정의됩니다.
OS | 로그 파일 |
---|---|
macOS | ~/Library/Logs/Unity/Player.log |
Windows | C:\Users\username\AppData\LocalLow\CompanyName\ProductName\output_log.txt |
Linux | ~/.config/unity3d/CompanyName/ProductName/Player.log |
Windows와 Linux 스탠드얼론에서 로그 파일의 위치 변경이 가능하다는 것(또는 로깅을 중지할 수 있다는 점)을 참조하십시오. 자세한 내용은 커맨드 라인 인자 문서를 참조하십시오.
XCode의 디바이스 로그는 GDB 콘솔 또는 오거나이저(Organizer) 콘솔을 통해 액세스할 수 있습니다. 후자는 애플리케이션이 XCode 디버거를 통해 실행하고 있지 않은 경우 충돌 로그를 검색하는 데 유용합니다.
문제 해결과 충돌 버그 리포팅 가이드가 유용할 수 있습니다.
디바이스 로그는 logcat console을 사용하여 볼 수 있습니다. logcat 파라미터가 따라오는 Android SDK/platform-tools directory 의 adb 애플리케이션을 통해 실행해야 합니다.
$ adb logcat
LogCat을 확인하는 다른 방법으로 Dalvik Debug Monitor Server(DDMS)를 사용할 수 있습니다. DDMS는 Eclipse 또는 Android SDK/tools 에서 시작할 수 있습니다. DDMS는 이 외에도 여러 디버그 관련 툴을 제공합니다.
디바이스 | 로그 파일 |
---|---|
데스크톱 | %USERPROFILE%\\AppData\\Local\\Packages<productname>\\TempState\\UnityPlayer.log |
Windows Phone | Windows Phone Power Tools로 검색해서 가져올 수 있습니다. Windows Phone IsoStoreSpy도 유용할 수 있습니다. |
WebGL에서 로그 출력은 브라우저의 JavaScript 콘솔로 작성됩니다.
Windows에서 로그 파일은 기본적으로 숨겨진 위치에 저장됩니다.
Windows Vista와 7에서는 Tools > Folder Options… > View(tab) 에서 AppData 폴더를 Windows 탐색기에서 보이게 할 수 있습니다. 툴 메뉴는 기본적으로 숨겨져 있지만 Alt를 한 번 누르면 표시됩니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.