0

なぜ私がここでデバッガーをヒットすることさえないのか、誰かが知っていますか?最初に実行したとき、エラーメソッドをヒットし、エンタープライズ認証を有効にする必要があると表示されましたが、現在はどちらのデバッガーもヒットしていません。getFirstNameAsyncからgetの約束を取り戻すことはできますが、それが実現することはないと思います。

Windows.System.UserProfile.UserInformation.getFirstNameAsync().done(
    function (name) {
        debugger; //document.getElementById("myDiv").innerText = name;
    },
    function (error) {
        debugger; //document.getElementById("myDiv").innerText = error.message;
    }
);
4

2 に答える 2

1

You need to use a try {} catch() {} block around any code that can cause an exception.

Async methods will just stop executing on the thread they are created on if an exception occurs.

于 2012-08-29T18:09:23.013 に答える
0

A simple system restart fixed it.

于 2012-08-30T18:24:26.570 に答える