- Home /
How do you access Debug console from standalone executable in Win8?
I know there is a page that describes where the Log files should be for different Operating Systems:
http://docs.unity3d.com/Documentation/Manual/LogFiles.html
It describes that Debug Log information on a Windows Vista / 7 should be within EXECNAME_Data\output_log.txt
Since there is no documentation for Windows 8, I assume it works the same as Vista / 7. There is not file 'output_log within the _Data Folder. When I search for '_log' nothing appears anywhere on the computer. Hidden files are set to visible in my Control Panel folder options.
Does anyone know how to access the Debug Log information printed to console for a standalone executable running on Windows 8?
Answer by perchik · Mar 12, 2014 at 07:36 PM
I'm on windows 8. I made a simple scene, that has a main camera and this script on the camera:
using UnityEngine;
using System.Collections;
public class demo : MonoBehaviour
{
// Use this for initialization
void Start()
{
Debug.Log("This is a test. Just a test");
}
}
I build it with just that scene and call it "Demo.exe" saved on my desktop
That created two things, Demo.exe on my desktop and Demo_Data folder on my desktop.
When I run Demo.exe it's supposed to write to the Debug.Log. Then I close Demo.exe.
In the Demo_Data folder, there's now a file called output_log.txt which says this:
log.txt:
Initialize engine version: 4.3.4f1 (e444f76e01cd) GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 9.0c [nvd3dum.dll 9.18.13.3489] Renderer: NVIDIA GeForce GTX 650 Vendor: NVIDIA VRAM: 965 MB (via DXGI) Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0 Begin MonoManager ReloadAssembly Platform assembly: Z:\Desktop\Demo_Data\Managed\UnityEngine.dll (this message is harmless) Loading Z:\Desktop\Demo_Data\Managed\UnityEngine.dll into Unity Child Domain Platform assembly: Z:\Desktop\Demo_Data\Managed\Assembly-CSharp.dll (this message is harmless) Loading Z:\Desktop\Demo_Data\Managed\Assembly-CSharp.dll into Unity Child Domain Platform assembly: Z:\Desktop\Demo_Data\Managed\Assembly-UnityScript.dll (this message is harmless) Loading Z:\Desktop\Demo_Data\Managed\Assembly-UnityScript.dll into Unity Child Domain - Completed reload, in 0.058 seconds desktop: 1920x1080 60Hz; virtual: 3840x1080 at 0,0 Initializing input.
XInput1_3.dll not found. Input initialized.
This is a test. Just a test
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 53)
Notice the Debug.log is in that. I'm not sure what your problem is. Can you try what I did and see if it works?
Answer by mrjordan · Jul 28, 2018 at 07:10 PM
For future reference, logging is only enabled if you check "Development Build" and "Script Debugging" in Build Settings.
Your answer
Follow this Question
Related Questions
View Debug.Log output while remote debugging on Surface RT 0 Answers
Directx 11device context with debug 1 Answer
Best way to Debug Network games? (multiple instances of executable) 1 Answer
Is it just me, or does debug log crash unity on large iterations? 1 Answer
Console messages from multiple connected players on same machine 0 Answers