I am developing a mobile app using Phonegap Build to generate for different mobile platforms. I have successfully deployed and debugged my APK file on Android devices using adb tools and ddms. Now on to Windows Phone 8, but I am having trouble figuring out how to debug.
I have a Windows 8 Pro machine and have successfully installed Windows Phone SDK, deployed the XAP file to both the emulator and a Windows Phone 8 device using the Application Deployment tool (got the MS Dev subscription, registered the phone, all that stuff). The app loads but appears to not receive the deviceready event, but I really have no idea because I can't see the console log.
The SDK came with Visual Studio Express, but I don't see how to open an XAP to run it from VS so the output might go to the VS debug windows. Is there any way to see the console.log statements from my XAP from Phonegap Build? or must I create a VS project and compile/run from there?
Right click project > Properties > Build > check Define DEBUG constant
If option is disabled, stop code execution ( Shift + F5 )
Messages should go to the Output window. To open it up go to View > Output ( Alt + 2 )
Edit:
For Visual Studio 2013, it seems like the following would work.
In Visual Studio 2013
to see JavaScript console output, click:
DEBUG
→ Windows
→ JavaScript Console
or use a shortcut to open the console:
CTRL + ALT + V, C
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With