nytimes/kyt

Source mapping of server code is not working when debugging in Chrome Dev tools

开放

#319 创建于 2016年11月3日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (129 个派生)batch import
bughelp wanted

仓库指标

星标
 (1,918 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hello and thanks for this tool, it's a huge time-saver.

I use kyt 0.3.0, node 6.7.0 on MacOS Sierra and I want to debug my server code.

I use the dev command with the inspect flag.

kyt dev -- --inspect

and then i open the Chrome Dev Tools using the url printed in the terminal:

Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
    chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:9229/node

And it works perfectly except the source mapping for my server code. Only, the node_modules are mapped: capture d ecran 2016-11-02 a 15 06 21

Any ideas ?

贡献者指南