Comments (10)
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.
@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.
Hi! I'm not sure what's the question here.
Can you rephrase?
from fastify-cli.
How to config the launch.json in VSCode editor
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "DEBUG", "program": "${workspaceFolder}\\app.js" } ] }
from fastify-cli.
I'm sorry, but I'm not a VSCode user, so I can't help you.
cc @jsumners @StarpTech
from fastify-cli.
And I don't use fastify-cli
.
from fastify-cli.
@jsumners @delvedor If I don't use fastify-cli, I can debug.
from fastify-cli.
@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.
@delvedor I see.
from fastify-cli.
Awesome, thanks for solution @iam-pawat.
from fastify-cli.
Related Issues (20)
- Generated project doesn't work out of the box with --esm --lang=ts HOT 2
- Need better `eject`
- Can't add schema to route HOT 1
- Route URL case sensitivity HOT 20
- Generate plugin nitpicks to work out of the box
- Core plugin installation utility HOT 4
- package.json file already exists in target directory HOT 2
- c8 dependency is not added with fastify generate project_name --lang=ts HOT 1
- How to configure project to run as https in development mode HOT 2
- How to run a fastify server in production HOT 2
- Watcher is not working on builders
- Does Platformatic Replace fastify-cli ? HOT 1
- Dependency update for v5
- with 'nom run start' error: Missing the required file parameter shows up
- Increasing Code coverage HOT 2
- Make the tool more interactive HOT 1
- How to load env.development? HOT 1
- Any Interest in Adding TS and ESM support to the generate-plugin option?
- Permanent reboot with fastify/vite HOT 4
- Typescript Fastify app generated with cli has error when running `npm run test`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify-cli.