I'm really interested in godot as game engine and the possibilities to use c++ to develop in it. I've stopped on gdnative approach, because it faster and easier (and also gives me a possibility to work with CMake instead of SCons). I've already arranged small project based on gdnative_cpp_example with the only difference that I used Cmake instead of Scons (gladly godot-cpp, which is used for generating bindings, alongside SConstruct have CMakeLists script in it). Only problem I left with, is the absence of good way to debug c++ and gdscript code. For development I use vs code (on windows), and for now I've found 3 ways to debug:
- I can start project directly from vs code, slightly modifying "Launch" configuration, to start godot editor with
--projectargument. This gives ability to debug c++, but not gdscript. - With godot-tools extension for vs code I can use last to debug gdscript, but not c++..
- I can start the project from editor (which will give me ability to debug gdscript), and after that attach vs code debugger to a running process to debug c++ dll. This works, but I need directly attach vs code by choosing correct process only after I've launched this process. Because of that I miss initialization time, and it's also feels clunky..
Ultimately I want to debug gdscript and c++ dll within vs code at the same time, but I'm not sure that it's even possible.. So what will be good is to have ability to start game process from the editor and automatically connect vs code to it. I've tried to search something like "vs code automatic c++ debug", but I haven't found anything on web. Maybe I am just searching for incorrect term. Does anyone know anything on this topic?
(I've tried to keep my question short, but I'm not sure I've made it well informative, so feel free to ask questions)