0

I have an ASP NET Core application with Angular 2 and Typescript and I am struggling to debug Typescript files in Visual Studio 2015. All my angular 2 files are insire of "wwwroot" directory.

In my tsconfig.json file I have:

{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "noEmitOnError": false,
    "noImplicitAny": false,
    "removeComments": false,
    "sourceMap": true,
    "target": "es5"
  },
  "exclude": [
    "node_modules/**/*.d.ts",
    "wwwroot",
    "typings/main",
    "typings/main.d.ts"
  ]
}

I have all the .map files and js files generated in the file system and I can see them in my solution but when I start debugging Visual Studio with Internet Explorer but says that "No symbols have been loaded for this document."

I have created a simple project only with .NET Core and simple typescript file. Following this guide: https://www.typescriptlang.org/docs/handbook/asp-net-core.html

Here is the code on git: https://github.com/andrenpt/TypeScriptDebug

Still the break-point is not hit in VS2015

Does anyone have any suggestion?

6
  • Did you check here stackoverflow.com/questions/28834065/…? Commented Oct 27, 2016 at 16:16
  • Yes I have read that before. Can't use some of the suggestions as they are for ASP .NET 5 and I do not have those options in an ASP NET Core project. Tried to use "inlineSourceMap": true, "inlineSources": true but it didn't worked. Commented Oct 27, 2016 at 16:41
  • ASP.NET 5 is the old name for ASP.NET Core, though perhaps they changes more than just a name with this regard :) Commented Oct 27, 2016 at 16:44
  • If you go to a ASP.NET Core project properties you cannot Disable all debuggers like they suggest to do in that question/link. That is what I mean for it's different. Thanks Commented Oct 27, 2016 at 16:47
  • By the way, just to mention: typescript debugging seem to work in Chrome if you have all the source maps in order. Commented Oct 27, 2016 at 17:02

0

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.