0
点赞
收藏
分享

微信扫一扫

使用WebStorm调试Typescript脚本


1.新建ts文件

使用WebStorm调试Typescript脚本_前端

2.编辑配置

使用WebStorm调试Typescript脚本_typescript_02

 

3.添加配置

使用WebStorm调试Typescript脚本_node.js_03

 选择Node.js

使用WebStorm调试Typescript脚本_webstorm_04

 

 修改默认配置名,及脚本名

使用WebStorm调试Typescript脚本_typescript_05

使用WebStorm调试Typescript脚本_typescript_06

 

切换为当前配置

使用WebStorm调试Typescript脚本_webstorm_07

 

验证ts正确没报错后,生成js

使用WebStorm调试Typescript脚本_node.js_08

 下面生成RegExpDemo.js

使用WebStorm调试Typescript脚本_前端_09

 

接下来调试js

使用WebStorm调试Typescript脚本_node.js_10

 

在生成的js文件中设置断点并调试

使用WebStorm调试Typescript脚本_node.js_11

 

 

举报

相关推荐

0 条评论