C# (WinRT): デバッグコンソールにトレース出力

C#: WriteLinePage.cs

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace Snippets
{
    public sealed partial class WriteLinePage : Page
    {
        public WriteLinePage()
        {
            this.InitializeComponent();
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("hogehoge");

            int debug = 3;
            float debugf = 4.0f;
            double debugd = 5.0f;
            System.Diagnostics.Debug.WriteLine("nums: " + debug + " " + debugf + " " + debugd);

            String name = "name";
            System.Diagnostics.Debug.WriteLine("objects: " + this.ToString() + " " + name);
        }
    }
}

Output:

hogehoge
nums: 3 4 5
objects: Snippets.WriteLinePage name