zoukankan      html  css  js  c++  java
  • TypeScript 项目调试 Macha 调试配置

    前提条件:

    默认你对node和TypeScript有一定了解,可以创建TypeScript项目,对ts-node, mocha, chai 等模块有一定了解

    1. VS Code 直接调试TypeScript文件配置

      1.1 配置lunch.json 和 tasks.json

     

      1.2 打开要调试的TypeScript文件,直接F5

      

    2.直接调试Mocha TypeScript 文件

      2.1 配置luanch.json

    {
    "type": "node",
    "request": "launch",
    "name": "Mocha Tests File",
    "program": "${workspaceFolder}/node_modules/.bin/_mocha",
    "args": [
    "-r",
    "ts-node/register",
    "--timeout",
    "999999",
    "--colors",
    "${file}"
    ],
    "runtimeArgs": [
    "--nolazy"
    ],
    "cwd": "${workspaceFolder}"
    }

      2.3 调试Mocha TypeScript 文件

  • 相关阅读:
    隔离级别
    分析Hello2代码
    正则表达式
    Filter and servlet
    部署描述符
    Annotation
    LDAP and Implementation
    Restful levels and Hateoas
    servlet injection analysis
    隔离级别
  • 原文地址:https://www.cnblogs.com/nxnpx/p/11163278.html
Copyright © 2011-2022 走看看