New issue
Advanced search Search tips

Issue 616310 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

debugger shows javascript instead of typescript

Reported by timk...@gmail.com, Jun 1 2016

Issue description

UserAgent: 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?
 
hello-world-typescript.ts
362 bytes Download
hello-world-typescript.js
72 bytes View Download
hello-world-typescript.js.map
158 bytes Download
Is there an html that links to the js? How do you open it?

Comment 2 by timk...@gmail.com, 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

hello-world-typescript.js
72 bytes View Download

Comment 3 by timk...@gmail.com, 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

Comment 4 by l...@chromium.org, Jun 9 2016

Status: WontFix (was: Unconfirmed)
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