V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cs3230524
V2EX  ›  Node.js

调试报错行数不准确

  •  
  •   cs3230524 · Mar 7, 2020 · 4369 views
    This topic created in 2245 days ago, the information mentioned may be changed or developed.
    使用 ts 编写项目,ts-node 启动项目调试,报错的堆栈信息和实际的错误行数对不上咋整?
    3 replies    2020-03-07 23:04:34 +08:00
    xiaoming1992
        1
    xiaoming1992  
       Mar 7, 2020 via Android
    将 devtool 改成 cheap-module-source-map 试试
    cs3230524
        2
    cs3230524  
    OP
       Mar 7, 2020
    @xiaoming1992 后端啊,哪里什么 devtool
    xiaoming1992
        3
    xiaoming1992  
       Mar 7, 2020
    那是在 tsconfig 里关了 sourceMap?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3452 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 04:23 · PVG 12:23 · LAX 21:23 · JFK 00:23
    ♥ Do have faith in what you're doing.