zoukankan      html  css  js  c++  java
  • VSCode调试配置

    http://code.visualstudio.com/docs/editor/debugging#_launch-configurations

     VSCode内置Node.js运行时, 能调试javascript, TypeScript.

    如果要启动调试, 需要设置启动配置文件--launch.json. 单击调试视图顶部的配置齿轮图标

    选择调试环境, vscode将在.vscode目录下生成一个launch.json的配置文件


    launch.json中有很多属性可以设置, 通过智能提示查看有那些属性可以设置, 如果要查看属性的具体含义, 可以把鼠标悬停在属性上面, 会属性的使用说明.

    在launch.json中会使用到一些预定变量, 这些变量的具体含义如下

    ${workspaceRoot} the path of the folder opened in VS Code(VSCode中打开文件夹的路径)
    ${workspaceRootFolderName} the name of the folder opened in VS Code without any solidus (/)(VSCode中打开文件夹的路径, 但不包含"/")
    ${file} the current opened file(当前打开的文件)
    ${relativeFile} the current opened file relative to workspaceRoot(当前打开的文件,相对于workspaceRoot)
    ${fileBasename} the current opened file's basename(当前打开文件的文件名, 不含扩展名)
    ${fileDirname} the current opened file's dirname(当前打开文件的目录名)
    ${fileExtname} the current opened file's extension(当前打开文件的扩展名)
    ${cwd} the task runner's current working directory on startup()

    hugo的工作原理

  • 相关阅读:
    Qt 之 emit、signals、slot的使用
    qt中的 connect 函数
    进程同步:生产者消费者模型 以及解决方法
    Linux 时间 与 定时器
    Linux 环境编程:errno的基本用法
    Linux 环境编程:dirfd参数 有关解析
    Kubernetes设计理念
    禅道升级
    关闭自动更新
    linux下的特殊模式
  • 原文地址:https://www.cnblogs.com/answercard/p/6125473.html
Copyright © 2011-2022 走看看