Hello, for some reason Visual Studio which I have set up to work with Godot (I can press f5 to run the game) no longer handles errors or breakpoints correctly, with no apparent change from me (apart from a windows update which may be the cause). Instead of pausing execution and highlighting the line on which the error occurred, allowing me to inspect variables, it now just skips over the code that causes the error with only a message in the 'Immediate Window'. Also, although breakpoints are working, when I try to step through code I get errors telling me Godot source files such as 'Node.cs' or 'DelegateUtils.cs' are not found, with an option to browse to find the files or decompile the source, even though I have 'Just my code' enabled. If I continue trying to step through, it eventually tells me that there is no symbol file loaded for 'Godot_v4.1.1-stable_mono_win64.exe'. When I run the game using Godot the errors in my code do show up but the normal behavior is to continue running anyway (for testing purposes I have a divide by zero at the start of my code)
Maybe its a simple fix like a misplaced file or reloading something but until I can fix this I am unable to do any more work on my game 🙁
Many thanks if you can offer any solutions or advice
Visual Studio step-through debugging stopped working, "No symbol file loaded"
Asked Answered
Just a thought. Have you updated your version of Godot lately? If so, check your project debug properties => path to the executable and browse to locate the latest version of the Godot executable. You may still be debugging from an older exe. It's easy to forget when you upgrade.
© 2022 - 2024 — McMap. All rights reserved.