testing a website in windows phone 7 simulator - windows-phone-7

I'm trying to test a mobile website I'm building using Windows Phone 7, but I can't figure out how to do it. It seems that the SDK wants me to build an application first in order to use the emulator, but I'm not building an app, I simply want to test compatibility of my mobile site with windows phones. How do I do this?

If you install the free Windows Phone SDK you can run an emulator in standalone mode (i.e. without Visual Studio running).
Search for "Windows Phone Emulator" from the Start menu and just launch that directly.
Once in the emulator about the only thing you can do is launch IE Mobile.
(To enter URLs and other text using your real computer keyboard instead of the onscreen keyboard tap your "Pause/Break" to toggle keyboard mode)

You should be able to run emulator without building an app
try C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\XDE Launcher\XdeLauncher.exe
If now start visual studio and make an app f.e. Silverlight for Windows 7. Emulator will be loaded with debbuger attached. If you stop the app in VS, emulator should be still there. It has preinstalled IE which you can use to test.
Mind that it's better to test your web app on a real device.

Related

How to run UWP app on Simulator and simulate a location?

I need to test my UWP application using a simulated location.
I assume that I can do this by running the app on the simulator instead of the local machine, but there is a problem. When I select Simulator, the simulator opens but never finished initializing. It is stuck in a state with a series of dots running across the screen.
In the Visual Studio window, the last message I see is "Registering the application to run from layout". I don't know what that means.
I found some old posts that suggest I need to acquire or renew a license. I checked to make sure that Developer Mode was enabled on my machine and I also ran "Get-WindowsDeveloperLicense" from an elevated PowerShell account, but it did not fix the problem.
Thanks,
Frank
How do I start a UWP simulator?
Your system need to support Hardware-assisted virtualization and
Enable Hyper-v for emulator
Then switch the Solution Platforms to X86 or x64.
For more info please refer Run Windows Store apps in the simulator
simulate a location?
The Visual Studio 2015 simulator does not include the geolocation button. This is because the Windows 10 simulator does not include geolocation simulation. If you need to do this kind of simulation, you can use the Visual Studio 2013 simulator on Windows 8.1 or earlier operating systems.

USB Remote Debugging on Windows 8 Phone

I want to test my Windows 8 phone app. I want to plug it into the desktop computer and view the JavaScript console output on the desktop.
I can debug the app itself in Visual Studio but I want to see the JavaScript console output.
Is this possible? I know you can do it with Android phone
https://developers.google.com/chrome-developer-tools/docs/remote-debugging#enable-usb-debugging
but what about the Windows 8 phone? What about previous versions of the windows phone? What about the different versions of the iOS?
It is not possible to do this on Windows Phone 8.
There is no information available about what may be possible in future versions.
Unfortunately, you'll have to show your output on the page to debug web pages on actual devices.
You can use WEINRE (WEb INspector REmote). It works with all platforms and it's free.
This is documented on Channel9
Launch Visual Studio and press Ctrl + Shift + P (or navigate to Debug > Other Debug Targets > Debug Windows Phone Internet Explorer).

Windows phone 7 emulator and visual studio 2010 attach process

Opened windows phone Emulator(start >> programs >> Windows Phone SDK 7.1 >> Windows Phone Emulator) and then trying to run Windows Phone 7 app in visual Studio 2010, this is trying to open new emulator, is there anyway to run the app in opened emulator (OR something like attach debug process)
-Edit:
my actual Problem is when i try to run on the emulator, it says "Error:Invalid or missing Rom image", and i found the solution on the net as "permanently delete .dess file under C:\ProgramData\Microsoft\XDE path" i tried this but no luck since there is no as such file. (but strange is that sometime back it was running properly :-p)
Open an instance of Visual Studio, add a Windows Phone specific project, and then run it. If the Windows Phone SDK was successfully installed, the demo app should run correctly inside the emulator. The emulator is opened automatically by Visual Studio, you do not have to start it manually from the folder it is installed in.

Zune software is not launched (WP7)

I installed VS 2010 Express + WP7 SDK, it worked perfectly. Now I need to use unit-tests, and installed VS 2010 Ultimate (and reinstalled WP7 SDK). WP7 plugin seems to be installed (there are WP7 project types in "New Project" dialog), but when I'm trying to launch my software for debug, VS says that "Error 1 Zune software is not launched. Retry after making sure that Zune software is launched.". WP7 emulator is already launched (and Zune too, but Zune says, that there is no device connected). Expression Blend works with emulator perfectly (it runs the emulator by itself). Where is a mistake?
It seems like Visual Studio tries to deploy to a device.
Did you select "Windows Phone 7 Emulator" in the "Target Deployment Device" dropdown?
First of all, make sure that you have the Standard toolbar visible. That's where you select the Target Device. To do this: View -> Toolbars -> Standard. Since Expression Blend detects the emulator, then there is a problem with Visual Studio, that tries to deploy to a device by default.
REMEMBER: Zune Software is not required to be running when you are deploying to an emulator.
Second, try to create a new Windows Phone 7 project and try deploying it from Visual Studio to see how it works.

are there log files for windows mobile phone 7 emulator

I'm doing some development for windows mobile phone 7. I have the emulator installed and can deploy and debug the application. However, I'm getting random application crashes that I'm trying to debug. When I've worked with other emulators, there are log files that give log details from system libraries and other framework components that are being used.
Are there any such logs with mobile emulator?
Is it the emulator that is crashing? Or the application?
If its the application, then you should be able to use the VS2010 debugger with "break on exceptions" turned on and with intellitrace options.
If its the emulator, then sorry - but I don't know of any log files available.

Resources