We are pleased to announce that it is now possible to debug Edge Functions in Netlify CLI while running
Install the latest version of CLI by running
npm install netlify-cli -g and use these flags with
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
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!