Category Archives: JavaScript

Detect DEBUG build configuration via JavaScript in Windows Store apps

Update (2012-09-29): Now you can use the package WinRT-JsDebugSymbols available via NuGet instead of manually adding the code to your project, and will receive future updates. One of the things I miss when developing Windows Store apps in HTML/JavaScript, is … Continue reading

Posted in JavaScript, NuGet, Windows 8 | Tagged , , , , , , | 3 Comments

Detect if the Debugger is attached via JavaScript in a Windows Store app

There are some cases where we want a block of o code or function to be executed only when we are debugging the application, usually to show detailed error messages that are intended only for the developer to see.

Posted in JavaScript, Windows 8 | Tagged , , , , , | 1 Comment

Global exception handling in Windows Store JavaScript applications

When an unhandled exception occurs in a Windows Store app, this application is terminated immediately, in a silent way and without showing any error message to the user. This is the default behavior, but we can change it, if we … Continue reading

Posted in JavaScript, Windows 8 | Tagged , , , , | 1 Comment

What does “use strict” do in JavaScript?

This is one of the questions I get frequently when delivering workshops on Windows 8 “Windows Store” application development using HTML, CSS and JavaScript.

Posted in JavaScript | Tagged , , , | Leave a comment

Get the network machine name in a Windows Store app

When developing Windows Store apps that support receiving push notifications, besides getting the application ID and hardware ID, I also like to get other useful information about the machine/device that can ease the management of the push notifications service. The … Continue reading

Posted in .NET, JavaScript, Windows 8 | Tagged , , , , | Leave a comment

Get the version number of a Windows Store app

Recently, during the development of a Windows Store app, I needed to dynamically get the current version numbers of the app to show in the “about” screen.

Posted in .NET, JavaScript, Windows 8 | Tagged , , , , | Leave a comment