Debugging Python in Unreal Engine with Visual Studio Code

preview_player
Показать описание
I will guide you through debugging Python code in Unreal Engine with VS Code. We will use so called Remote Debugger and a create a plugin that contains a debugpy module required for this operation.

Thanks to Remote Debugger you will be able to debuug you UE code just like you would do it with any other code launched directly from Visual Studio Code.

For those who prefer using PyCharm, a similar video is avaiblable in the course however Remote Debugger is available only in paid versions of PyCharm (and educational ones).

Get full Unreal Engine 5 Python Automation Course:

Рекомендации по теме
Комментарии
Автор

This was super helpful! Exactly what I was looking for!
Thanks so much for taking the time to make this video and for going into detail about how to set it up. You probably saved me hours of time trying to figure it all out. 🤩

JaseLindgren
Автор

I did find one helpful tip to add to this:
Instead of debugging the script by importing it in the Python (REPL), debugging is a bit easier if you paste the path of the python file into the Python version of the Output Log (the non-REPL) one.
This way you can continue to debug the same file over and over without having to do extra stuff to force it to re-import a module it has already imported.

JaseLindgren
Автор

Great series so far, but I wasn't able to get past creating the launch.json, VScode shows the debuggers I have installed but no option for remote attach. I think the topic may be more advanced than I need anyway so I will return to it later.

harrisondorn