Minimal Reproducible Example for fullstack
netlify dev
debugging with vs code
.
Running: nuxt
, vue
, type-graphql
, typescript
, buefy
, apollo-server-lambda
on netlify functions
.
yarn
IMPORTANT
Make sure you have deactivated "Caught Exceptions" in VS Code debugger, otherwise you might catch internal node.js or other wrapping processes errors.
launch.json
should contain everything you need to integrate debugging with your project.
In VS CODE:
- Open
Run and Debug
Sidebar. Make sure "Caught Exceptions" is deactivated. - In the dropdown, select
Fullstack Debugging
- Add a breakpoint in
/serverlessFunctions/helloServerless.ts
or/serverlessFunctions/graphql.ts
- Start debugging by pressing
F5
or run button
-
Hello World
example -
graphql.ts
examplehttp://localhost:8888/.netlify/functions/graphql
Note: An error might display on first page load. Make sure to refresh the page and you should be at the playground.
Query Example:
query GetRecipe1 { recipe(title: "Recipe 1") { title description ratings creationDate ratingsCount(minRate: 2) averageRating } }