How to access the UnityPlayer.log file on Windows Phone

Sometimes when debugging a game built with Unity, you need to access the UnityPlayer.log file to see what’s happening on an actual device. Here’s how you get the log file off of Windows Phone for inspection.

Requirements: You need a PC with the Windows Phone 8/8.1 SDK installed and a test device that has your game installed from either Visual Studio or the Application Deployment tool.

Note: this method does not work on games installed from the Windows Phone store.

Finding your game’s GUID

First, you will need to find the GUID for your app. For Windows Phone 8.1, this value is located in the Package.appxmanifest in Visual Studio. You will have to open the file using the text or XML editor. From there, you will need to find the PhoneProductID element of the PhoneIdentity tag.

For Windows Phone 8.0, this value is the Product ID, located in the WMAppManifest.xml file.

Taking a snapshot of IsolatedStorage

Next, we’ll use the IsolatedStorageExplorerTool to capture a snapshot of the game’s Temp directory on the phone and copy it to a directory on your PC.

Open a Windows command prompt and enter the following command –

Windows Phone 8.1 –

[snippet id=”20038″]

Windows Phone 8.0 –

[snippet id=”20039″]

If the operation completed successfully, the tool will print “Done.” In the output window.

Now you can navigate to your output folder and the UnityPlayer.log file should be located in the newly created IsolatedStore directory.

Reference

IsolatedStorageExplorerTool – https://msdn.microsoft.com/en-us/library/windows/apps/dn629254.aspx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s