Edge Functions debugging now available in Netlify CLI

We are pleased to announce that it is now possible to debug Edge Functions in Netlify CLI while running netlify dev.

Install the latest version of CLI by running npm install netlify-cli -g and use these flags with netlify dev:

  • edgeInspect - enables the V8 Inspector Protocol for Edge Functions, with an optional address in the host:port format
  • edgeInspectBrk - enables the V8 Inspector Protocol for Edge Functions and pauses execution on the first line of code, with an optional address in the host:port format

Usage examples:

netlify dev --edgeInspect
netlify dev --edgeInspect=127.0.0.1:9229
netlify dev --edgeInspectBrk
netlify dev --edgeInspectBrk=127.0.0.1:9229

More on CLI docs.

Please leave any comments and/or questions below and we’ll be more than glad to help!