I can not understand.
Created by tsconfig.json :

 { "compilerOptions": { "module": "system", "noImplicitAny": true, "removeComments": true, "preserveConstEnums": true, "outFile": "./index.js", "sourceMap": true }, "exclude": [ "node_modules", "wwwroot" ] } 

And simple ts code:

 var list: number[] = [10, 20, 30]; var colors: string[] = ["red", "green", "blue"]; console.log(list[0]); console.log(colors[1]); 

And what next to do I have no idea. Tell me how to start this miracle when I click Run , it gives me the Edit Configuration submenu. In which I do not understand what to configure.

    1 answer 1

    enable the typescript compiler (Settings | Languages ​​& Frameworks | Typescript, Enable TypeScript compiler and Use tsconfig.json ), after your code is compiled, select Debug in the context menu of the compiled file ( index.js ). Well, the breakpoint, of course, must be put in the ts file