Reputation: 383
I'm generating .js.map files so that I can debug my TypeScript code in Chrome. js.map files point to the correct location of the typescript in the "sources" property. sourceRoot is "", and sources is the path to the typescript code from the location of the js file on disk (using outDir in jsconfig.json so that they're placed under the WebContent tree), but the typescript is outside of the web content tree. In the debugger in Chrome, it shows that map files were detected, I see a directory tree in the Sources list in the debugger, it points to the right location on disk, and it contains all of my ts files in the right locations (visually), but opening any one of them shows empty contents. Double-clicking in the .js file in the debugger to set a bp takes me to the empty .ts file. I don't know what details to provide in order to have a chance of getting help on this. All questions welcome.
Upvotes: 0
Views: 702
Reputation: 33
I had the same problem as you. The solution is simple.
In your build.xml
you have excluded somehow these *.ts
files or their parent's folder, so the server doesn't load these files. You can find the excluded files and folders inside a tag fileset excludes=""
in your build.xml
.
Or inside the same fileset includes=""
tag you don't include these files.
See my fileset:
Upvotes: 0