Windows Phone 7 Console window on 64 bit Machine

Source: Internet
Author: User

A while ago as part of my post http://nicksnettravels.builttoroam.com/post/2010/07/24/Howe28099s-my-Windows-Phone-7-application-being-used-Getting-started-with-the-Microsoft-Silverlight-Analytics-Framework-for-Windows-Phone-development.aspxdiscussed how you can enable the console window for the Windows Phone 7 emulator. since I upgraded my machine to 64bit windows I haven't got around to enabling the console window but today I decided to give it a shot. now my previous post stated that you just needed the following registry entry:

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ xde]
"Enableconsole" = DWORD: 00000001

However, this wasn' t working for me .... And actually the xde key didn't even exist. Of course, I'm running a 64 bit machine and a lot of the Windows Phone 7 SDK runs in 32 bit mode. Doh! Shocould have realized that of course I 'd need to alter the registry key to the following (note the additional wow6432node key)

[HKEY_LOCAL_MACHINE \ SOFTWARE \ wow6432node \ Microsoft \ xde]
"Enableconsole" = DWORD: 00000001

Now I can run the console window and write to it using console. writeline (as an alternative to debug. writeline which appears in the Visual Studio debug output window ).

Eg console. writeline ("application loaded ");

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.