I noticed that when installing the using the Epic Games Launcher there is an option to download the source code.
I created a simple project to perform a few tests and the entire source code is now in my VS project and I setup my project with Development Editor. When I set a breakpoint in my game code VS stops and I can check the callstack. The thing is that the Engine code is grayed out.
Is this the expected behaviour and the engine source code is there just for reference or there is a way to debug the engine code with the default Epic Games Launcher installation?
Did you check “Editor symbols for debugging” in the install options? It is easy to miss that there is a scroll-box on the installation options. If your window was small, you may not have seen the additional options.
Now that I’m home, the answer to my first question is “Yes”. As can be seen in the picture, click in the arrow next to the “Launch” button and then “Options” to install the debug symbols.
Regarding your second question, if you are using the binary version of the Engine that is installed through the Launcher, the source code is only available for reference purposes. If you make any changes to the source code it will not be compiled into the Engine binaries. If you want to be able to modify the source code, you will need to download the source code for the Engine from GitHub and build the Engine yourself.