Giter VIP home page Giter VIP logo

Comments (10)

leosuncin avatar leosuncin commented on September 8, 2024 9

I use this configuration for launch.json

{
  // Use IntelliSense para saber los atributos posibles.
  // Mantenga el puntero para ver las descripciones de los existentes atributos.
  // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-node",
      "request": "attach",
      "name": "Attach by Process ID",
      "processId": "${command:PickProcess}",
      "skipFiles": ["<node_internals>/**"]
    },
    {
      "type": "pwa-node",
      "request": "launch",
      "name": "Start fastify",
      "skipFiles": ["<node_internals>/**"],
      "runtimeArgs": ["--inspect"],
      "program": "${workspaceFolder}/node_modules/fastify-cli/cli.js",
      "args": [
        "start",
        "-w",
        "--ignore-watch='test .vscode'",
        "-l",
        "debug",
        "${workspaceFolder}/src/app.js"
      ]
    }
  ]
}

from fastify-cli.

iam-pawat avatar iam-pawat commented on September 8, 2024 8

image
@paulZzhang after you config launch.json. you mark debugging point, run your app and press run debugging button. vscode will display process picker. you can choose your target running process what you want to attach debugger

from fastify-cli.

delvedor avatar delvedor commented on September 8, 2024

Hi! I'm not sure what's the question here.
Can you rephrase?

from fastify-cli.

 avatar commented on September 8, 2024

How to config the launch.json in VSCode editor
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "DEBUG", "program": "${workspaceFolder}\\app.js" } ] }
image

from fastify-cli.

delvedor avatar delvedor commented on September 8, 2024

I'm sorry, but I'm not a VSCode user, so I can't help you.
cc @jsumners @StarpTech

from fastify-cli.

jsumners avatar jsumners commented on September 8, 2024

And I don't use fastify-cli.

from fastify-cli.

 avatar commented on September 8, 2024

@jsumners @delvedor If I don't use fastify-cli, I can debug.

from fastify-cli.

delvedor avatar delvedor commented on September 8, 2024

@paulZzhang I don't understand your question.
fastify-cli does two things, bootstraps a new project with fastify generate or run an existing project (generated with fastify-cli) with fastify start.
You can run fastify help <command> to know more.

from fastify-cli.

 avatar commented on September 8, 2024

@delvedor I see.

from fastify-cli.

meotimdihia avatar meotimdihia commented on September 8, 2024

Awesome, thanks for solution @iam-pawat.

from fastify-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.