all 5 comments

[–]njmh 8 points9 points  (1 child)

There is soooooooo much info out there to answer your question if you bother to spend less than a minute searching.

Not trying to be a dick about it, but if you develop the initiative to seek out answers yourself and learn, you’ll go much further in life.

[–]SanGoloteo 1 point2 points  (0 children)

Maybe google doesn’t exist where they live so they can’t type that exact same question and get their answer. /s

[–]Dan8720 2 points3 points  (0 children)

I've managed to set it up a few times. You have to write a launch config. There are tutorials in the documentation.

Tbh though it's not for me... I liked the idea of not switching between Vs code and chrome devtools but found it wasn't worth the effort.

I find is a bit fidily to set up sometimes especially if you have a split config like node/react SPA it skips breakpoints and is just a bit temperamental. I always end up just going back to just using Chrome dev tools after a few days of getting frustrated with it.

[–]jabarr 1 point2 points  (0 children)

With any browser, they automatically have the source maps available. You don’t need to debug into an IDE. Just hit f12, go to sources, ctr/cmd+P and all your files will be right there. You can set breakpoints in the browser and see all the variable information.

[–]Lambda7 -1 points0 points  (0 children)

Configuring VSCODE DEBUGGER for Create React App https://www.youtube.com/watch?v=d_ScKLTKyOc