Windows Phone: Log to console

前端 未结 2 866
礼貌的吻别
礼貌的吻别 2020-12-19 03:57

Disclaimer: I\'m quite new to the MSFT tech world and only started Windows Phone development a month or so ago.

I am unable to figure out how to log informa

相关标签:
2条回答
  • 2020-12-19 04:08

    I believe the methods in System.Diagnostics.Debug (specifically the overloads of WriteLine()) work...although I haven't tried them with C++ apps.

    0 讨论(0)
  • 2020-12-19 04:14

    Yep, it's possible to write debug strings from WP8 C++ to the output window in VS2012. I actually have an example of that here.

    1) Invoke OutputDebugString from C++.

    void Direct3DInterop::MyButtonWasClicked()
    {
        OutputDebugString(L"Button was clicked!");
    } 
    

    2) Before running the app make sure to change to the native debugger from the managed debugger in the project's properties.

    Native debugger in the project's properties

    0 讨论(0)
提交回复
热议问题