Комментарии:
After seeing this video I feel that I am a bug!
Ответитьwhat about webstorm's debug feature?
ОтветитьCan I just access variables in the console without adding breakpoints?
ОтветитьPerfect
Ответитьthis video would have been better if its bit lengthy
ОтветитьHow did no one ever tell me this?
ОтветитьBut does it work through docker
ОтветитьWhere to put that NODE_OPTIONS?
ОтветитьLove this!
ОтветитьWuttttt 🫤🫤🫤🫤
ОтветитьHi Steve, Here's is one more easy tip. If you want to debug an app without the `--inspect flag`, simply add a command to the package.json scripts. For example, you can add "debug-app":"node app.js". If you hover over "debug-app", you will see two options - "debug" and "start". Click on "debug" and it will start debugging in VS Code itself. You can then add your debugger in VS Code, add watches, and set breakpoints as required.
Ответитьi've been doing this for quite some time now
ОтветитьAmazing, but if it helps anyone you only need to pass the —inspect flag. So if I did node —watch —inspect server.js it’d be like having nodemon running with in browser dev tools! ❤❤❤
ОтветитьJust brilliant. Thanks!
ОтветитьDAMN THIS IS COOL! You are a hero man! love your stuff!
ОтветитьNo fucking way
ОтветитьSo helpful!
Ответитьok this is useful af
Ответитьguys, this is what happens if you read the docs.
ОтветитьThat's nuts!
ОтветитьVery nice!
ОтветитьYour videos are amazing, I love this format.
ОтветитьIt’s cool but what’s stopping us from using IDE’s debugger?
ОтветитьWhy not just debug directly from your vscode?
ОтветитьSomebody doesn't know it? Better tell whether there is a smart and easy way to debug node.js deployed on dev or qa instance, e.g. on AWS.
ОтветитьThanks for this! However, I'm afraid that this isn't possible for Firefox DevTools though - because it uses a different JS engine than Chrome's sadly.
ОтветитьI've been a professional developer for [redacted] years and IM SORRY WHAT? HOW HAS NOBODY TOLD ME THIS?
ОтветитьGoodness. I use webstorm. Server-side debugging node is the eaaaasy part. Don’t need to do anything.
ОтветитьWTF
ОтветитьHuuuuuge tip, thanks Steve!
ОтветитьI am very curious, how would you know awesome tricks.
ОтветитьThanks a lot
ОтветитьWow. This is legitimately a game changer for me 🤯
ОтветитьWow, very concise but so helpful tip. Awesome!
Ответить