thanks for a great article. I tried to follow it but can't make it work. After some investigation it looks like the sourcemaps for lambda functions are actually not generated at all and therefore the breakpoints do not work. I can't find sourcemaps in /lambda folder. Am I missing any pre-requisite?
I am using netlify-cli/2.69.1 win32-x64 node-v14.15.1
I do use netlify dev. Yes, the functions are in /src/lambda and when I run netlify dev they are generated to /lambda folder. However, there are no sourcemaps in /lambda folder. I believe that is why I get the error about sourcemaps not found.
When I add a break point to any function in /src/lambda it is not triggered, because the actual JS that is being run when I call any Netlify function is in /lambda folder.
Where exactly are sourcemaps for lambda functions located in your project?
Michal, hmm interesting as I do not see any of the related sourcemaps either. My functions folder is outside of the src though as the src is meant for having the UI code for me.
I see it connects all the time and I am able to debug too..
Do you want to debug it out together 😃? We can jump into a 30 mins google meet/zoom call to do that tomorrow. Let me know, I can ping you the meeting id on Twitter.
Michal
Hi,
thanks for a great article. I tried to follow it but can't make it work. After some investigation it looks like the sourcemaps for lambda functions are actually not generated at all and therefore the breakpoints do not work. I can't find sourcemaps in
/lambdafolder. Am I missing any pre-requisite?I am using
netlify-cli/2.69.1 win32-x64 node-v14.15.1Thanks