debugger shows javascript instead of typescript
Reported by
timk...@gmail.com,
Jun 1 2016
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36 Steps to reproduce the problem: 1. compile typescript to javascript and sourcemap. 2. chrome browser shows typescript 3. devtool shows javascript. devtool hello-world-typescript.js I compiled this typescript. var greet:string = "Hello"; What is the expected behavior? devtool should show typescript. What went wrong? devtool shows javascript. It does not use the sourcemap to find the original source code. Did this work before? N/A Chrome version: 50.0.2661.102 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 21.0 r0 It appears that node and devtool generate another javascript file. The second javascript file also has sourcemap to the first javascript file. Is that the source of the problem?
,
Jun 1 2016
Here is the javascript. Here is the problem. Client side displays typescript. Server side displays javascript. I tested server side with two server-side debuggers. Both displayed javascript. The first runs as a node package. The other is an eclipse plug-in. https://www.npmjs.com/package/devtool http://www.nodeclipse.org/ Nodeclipse ChromeDevTools SDK 0.3.9.201509250223 org.chromium.sdk.feature.group The Chromium Authors, Nodeclipse
,
Jun 1 2016
The server runs javascript without the need of an html file. Here are the commands to run the javascript on the server. The first uses node. The second uses the debugger, devtool. >node hello-world-typescript.js >devtool hello-world-typescript.js
,
Jun 9 2016
Hi timkilo@, thanks for the sample files. The Chrome browser's DevTools shows both JS and Typescript files, as intended. The 'devtool' package on npm you listed is developed by Jam3, not our team. What you can do is file an issue on their Github repo at https://github.com/Jam3/devtool/issues |
||
►
Sign in to add a comment |
||
Comment 1 by pfeldman@chromium.org
, Jun 1 2016