Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Debug.Log output in windows phone apps

Discussion in 'Windows' started by vladrybak, Sep 11, 2013.

  1. vladrybak

    vladrybak

    Joined:
    Aug 30, 2013
    Posts:
    108
    Is it possible to write debug.log from unity3d to my visual studio output window for wp8 apps?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,526
    Hello. You can see Debug.Log output in Visual Studio if you go into project settings, and on debug tab select "Native only" debugger. It's a known issue and it has been fixed for 4.3 (all debuggers will output Debug.Log), but until that is released, you'll have to use native debugger if you want to see the output.
     
  3. DiegoR

    DiegoR

    Joined:
    Oct 31, 2012
    Posts:
    33
    Cannot see the output in Visual Studio.

    I set "Native Only" in the Debug Tab of the Project Settings but nothing happened.

    Is there any other thing that need to be modified?

    I am using Unity 4.2.1f4.
     
  4. namine

    namine

    Joined:
    Mar 1, 2013
    Posts:
    21
    I was able to see the log, using this tool : http://wptools.codeplex.com/
    Browse to isolated storage of your device, find your app, and get file UnityPlayer.log
     
  5. Darjamfar

    Darjamfar

    Joined:
    Jun 4, 2012
    Posts:
    63
    Doesn't work for me either, on my project, debug tab I see

    Target device
    Debugger Type------------
    UI Task
    Agent Task

    I set both UI Task and Agent Task to native only but go no output, I then set only UI Task to native only ad agent back to Managed and still nothing !

    I am getting on the console the following type of error which was different than before which I assume PDB means something to do with program debug ?

    'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\WINDOWS.NETWORKING.DLL'. Cannot find or open the PDB file.
    'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\RSAENH.DLL'. Cannot find or open the PDB file.
    'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\FWPUCLNT.DLL'. Cannot find or open the PDB file.
    'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\DHCPCSVC6.DLL'. Cannot find or open the PDB file.
    'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\MMPhoneDeviceApi.dll'. Cannot find or open the PDB file.
    'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\AUDIOSES.DLL'. Cannot find or open the PDB file.

    Am I doing it wrong ?
    I set both UI Task
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,692
    Maybe you're running Master configuration?
     
  7. Darjamfar

    Darjamfar

    Joined:
    Jun 4, 2012
    Posts:
    63
    No, it is Debug. I tried deleting the proj and doing it again, still same errors wrt PDB
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,526
    Looks like it's bugged. You can still see the Debug log output in the player log on the phone itself. That's about all you can do until 4.3.
     
  9. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    983
    Will 4.3 have a way to debug log on Windows 8 as well?
    One option to get this to work would be to have an option to spit logs out in the build error console part of Unity but color stuff as Gray text instead of Red.