2

I'm writing a Windows 8.1 HTML5/Javascript store app and posts about this refer to using source map files in a supported browser. Just curious if anyone has gotten this working seamlessly by placing a breakpoint in their .ts file in Visual Studio.

3
  • 1
    The lasts posts I can find about this are about a year old so I'm hoping something has changed here... Commented Dec 28, 2013 at 22:10
  • 1
    Yes, I have gotten it to work somewhat consistently. If it isn't working, I'd suggest just trying a debugger; command to get things to stop where you want. Commented Dec 29, 2013 at 1:53
  • 2
    Can WiredPrairie and NatiKrisi tell something about HOW they got it working? Commented Jan 31, 2014 at 14:42

1 Answer 1

1

Windows 8.1 project

If you are facing issues with debugging TypeScript in Win8.1, I'd suggest to download and run sample/working project first. E.g. Encyclopaedia works for me, see:

enter image description here

The trick is in JavaScript mapping files. So, if this works for you, copy important parts from Encyclopedia.jsproj (like TypeScriptSourceMap at the very end of file and Import of TypeScript .targets) to your jsproj. Hope this helps.

Web project

To debug JavaScript or TypeScript run your application using an Internet Explorer:

  1. In Standard toolbar change a Debug target to IE

    change a Debug target to IE

  2. Navigate to your .ts file and place the breakpoint

  3. Press the green arrow :o)

If it still doesn't work, install the Web Essentials extension.

I have it tested also with Chrome and FF, but it doesn't work.

Sign up to request clarification or add additional context in comments.

1 Comment

This question was not for a web application. It is specifically for a Windows 8 WinJS native application using TypeScript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.