Minimal Reproducible Example for fullstack netlify dev debugging with vs code.
Running: nuxt, vue, type-graphql, typescript, buefy, apollo-server-lambda on netlify functions.
yarnIMPORTANT
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 DebugSidebar. Make sure "Caught Exceptions" is deactivated. - In the dropdown, select
Fullstack Debugging - Add a breakpoint in
/serverlessFunctions/helloServerless.tsor/serverlessFunctions/graphql.ts
- Start debugging by pressing
F5or run button
-
Hello Worldexample -
graphql.tsexamplehttp://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 } }