How to debug Serverless from within VS Code

  Рет қаралды 16,554

Complete Coding - Master AWS Serverless

Complete Coding - Master AWS Serverless

3 жыл бұрын

If you want to use the in-built debugging within VS Code with your Serverless Projects then this is the video for you.
Link to the launch.json gist.github.com/SamWSoftware/...

Пікірлер: 32
@JackHererz
@JackHererz 2 жыл бұрын
it worked to me, thanks!
@CompleteCoding
@CompleteCoding 2 жыл бұрын
You're welcome!
@mateocovacho3387
@mateocovacho3387 2 жыл бұрын
What changes would you make in the python fire if you are debugging a python file? Great vid btw!
@minus6288
@minus6288 3 жыл бұрын
Great Video!
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Glad you enjoyed it
@sanuzi6160
@sanuzi6160 2 жыл бұрын
This still doesn't work for me. I always end up with unbounded breakpoints. Copied the launch.json config word for word, except I change the outfiles to point to the typescript output folder. The server starts, but I get unbounded breakpoints every time. Very frustrating
@stivenramirezarango7513
@stivenramirezarango7513 2 жыл бұрын
Me too. I have unbounded breakpoints.
@BillyDraper72
@BillyDraper72 3 жыл бұрын
Sam, great video! Were you able to get the webpack issue figured out?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Not yet but I've not had the time to really look into it.
@sundards9613
@sundards9613 3 жыл бұрын
Sir thanks for your Serverless content really learned lot from this channel. I have one doubts how to remove Serverless deployment profile (default, custom).
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Do you mean how to set up a specific profile? serverless config credentials --provider aws --key YOUR_AWS_KEY --secret YOUR_AWS_SECRET --profile YOUR_PROFILE_NAME
@nguyenkminh
@nguyenkminh 2 жыл бұрын
I wonder what theme are you using, it looks fantastic
@CompleteCoding
@CompleteCoding 2 жыл бұрын
Monokai Pro. Its $10 for a full license but it's so clear and I've used it for years so well worth the investment
@alashish
@alashish Жыл бұрын
If you add webpack and typescript then vscode debugger doesn't work. Can you add how to use debugging in serverless when webpack is used.
@adisilagy
@adisilagy 2 жыл бұрын
Would this approach will work with typescript template?
@CompleteCoding
@CompleteCoding 2 жыл бұрын
Yes, there are some things that you need to do around the tsconfig and webpack (if you're using it) but it can work
@antoineartaud-tj3my
@antoineartaud-tj3my Жыл бұрын
do you have the github url link please ?
@neosarchizo
@neosarchizo 3 жыл бұрын
Can you upload a video about using webrtc with serverless?
@CompleteCoding
@CompleteCoding 3 жыл бұрын
I can have a look into it. It's not something I've done before
@VincentJenks
@VincentJenks 9 ай бұрын
This is great...if you're working with Vanilla JS. I've been trying for hours, and hours, to get a Lambda written in TypeScript to debug the same way. Any advice there? I thought Serverless Framework would save me, when it came to Typescript, after also spending many frustrating hours there with zero results. I just want to debug a TS Lambda locally, with local API Gateway, so I can actually start building something. Serverless is generally a *miserable* developer experience for me, thus far.
@VincentJenks
@VincentJenks 9 ай бұрын
I got it working through a little trickery. Full end -to-end with Nextjs inside VSC. I’ll post an article about it this week.
@robertluong3024
@robertluong3024 3 ай бұрын
@@VincentJenks where is it?
@nhannguyen9651
@nhannguyen9651 3 ай бұрын
@@VincentJenks do you still remember how to debug tyscript locally?
@JonathanLoscalzo
@JonathanLoscalzo 2 жыл бұрын
Great, in python is also de same? which is the config for that?
@CompleteCoding
@CompleteCoding 2 жыл бұрын
I've never tried running serverless offline with python lambdas but if that works then the rest should be the same.
@whoisevensaroj
@whoisevensaroj 2 жыл бұрын
@@CompleteCoding Please test a simple severless project with python with this approach, I tried your config for python, it is not working.
@andresm9051
@andresm9051 2 жыл бұрын
Gret video how to set it up, with nvm or node version manager linux or mac?
@CompleteCoding
@CompleteCoding 2 жыл бұрын
Mac - tecadmin.net/install-nvm-macos-with-homebrew/ not sure on Linux but sure there're good tutorials out there
@andresm9051
@andresm9051 2 жыл бұрын
@@CompleteCoding thanks a lot, I have had installed nvm on mac, but my question was related to set it up, on visual vode to debugging, because following the your video the degugger is taking the global nodejs installation at /user/local/ but nvm is installed at home directory, which is causing no taking the nvm path
@CompleteCoding
@CompleteCoding 2 жыл бұрын
@@andresm9051 Ah that's somethign I'd not considered. I haven't tested this but maybe adding an .nvmrc file to the repo would enforce that version of node
@andresm9051
@andresm9051 Жыл бұрын
@@CompleteCoding still not working adding the file .nvmrc and the nodejs version in it, the serverless offline start and the VS code debugger appears at the top of the windows, however when making a request the breakpoints are passed by, without stooping, the breakpoints says unbound breakpoints, maybe can be the webpack.config setup?
@aillusions
@aillusions 3 жыл бұрын
starts at kzfaq.info/get/bejne/rsdydL2el9DKiIU.html
Securing Your Serverless API With API Keys
14:21
Complete Coding - Master AWS Serverless
Рет қаралды 10 М.
Are you debugging JavaScript in VSCode? | YOU SHOULD!
7:06
Alex Ziskind
Рет қаралды 156 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 18 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
How to use the Debugger in VSCode to debug Node.js Applications
11:41
How To Quickly Debug AWS Lambda - VS Code & Serverless Framework
11:59
Dylan Albertazzi
Рет қаралды 19 М.
Top 6 Most Popular API Architecture Styles
4:21
ByteByteGo
Рет қаралды 873 М.
GO without SERVERS? How to Deploy Go to Lambda
15:47
Melkey
Рет қаралды 17 М.
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 408 М.
Create an API to get data from your DynamoDB Database
20:17
Complete Coding - Master AWS Serverless
Рет қаралды 22 М.
Your First AWS Lambda Function In VSCode - For Beginners - Updated
22:31
Dylan Albertazzi
Рет қаралды 19 М.
How to Debug Code Like a Pro
11:11
Lama Dev
Рет қаралды 61 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 7 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 6 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 2,2 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН