How does one debug code?

Hi. Would it be possible to show how to use the debugger and have breakpoints hit in Visual Studio Code? Either a video or article would help a lot.

Thank you.

I’m not sure about visual studio code, but when I use qtcreator, I set my breakpoints as usual and run the project from the Unreal Editor (game preview works fine). I then attach the debugger to the running process, and it breaks as expected, letting me step through and inspect each variable. Look for similar functionality in VSCode.

Thank you. I’ve used both Visual Studio Community and MonoDevelop on Unity, and it behaves the exact same way as you describe. I just haven’t really used Visual Studio Code outside of Angular projects.

Doesn’t sound like it should be hard to figure out what’s next. Thanks for the help.

Is this for Unreal? If it’s not you’ll have to write your own launch.json

Yes, for Unreal. Thanks for the link, I’ll check it out.

Privacy & Terms