Editor exits without saving when debugging is stopped

In order to see changes made in C++ code in game I need to run the editor using debugging session from VS. When I make any changes inside of the editor (in Blueprints, materials, adding/moving objects…) they are lost without any warning or chance to recover when I stop the debugging session from the Visual Studio (Editor is closed immediately).

Hey Elijen-

The editor exiting when debug is stopped is expected behavior. If you use the “X” in the debugger then the editor will have close normally and prompt you to save, however when you stop debugging through Visual Studio then the editor session ceases to exist without actually going through a shut down process.

Cheers