Open jckand opened 1 year ago
Both @jckand-amzn and @FuzzyCarterAWS can be reached out to for more information.
Older issue which appears related: https://github.com/o3de/o3de/issues/7381
Investigating by also following MSVS guide Mixed-mode debugging
Reproduced this behavior on MSVS 2022 v17.5.0 in development at 9a99b1a388 Even manually attaching the python debugger did not hit breakpoints, despite the debugger stating it attached.
Visual Studio is not automatically attaching the Python debugger, and the Editor project properties do not display an option for Python debugging. This may be related to MSVS project settings.
However launching and attempting to manually attach to the application shows it exposes Python debugger hooks:
The debugger does attach to something, though is unable to pause any executing code.
Nothing I've tried made the "Python/Native Debugging" option enabled in the MSVS project settings. There was also no effect from setting the python environment in View > Other Windows > Python Environments nor from explicitly pointing MSVS at the python pdb's.
Interestingly, breakpoints set in the C++ function PyRunFile are not hit when invoking azlmbr.legacy.general.run_file
. Instead the first C++ method seen is the call to PyIdleEnable invoked by the script. This suggests another method to execute scripts is being used, or that the symbols aren't available in profile builds. Regardless, the hunt for mixed-mode python debugging continues. Likely culprit remains the lack of "Python/Native Debugging" option.
Describe the bug Breakpoints are no longer hit in mixed C++/Python debugging in Visual Studio. As soon as the Editor is started via Visual Studio, any breakpoints set in Python files report that no symbols are loaded for the document.
Assets required
Steps to reproduce
e.g.
Expected behavior Breakpoint is hit in Visual Studio when the Python file is executed.
Actual behavior Test script runs as normal with no breakpoints hit.
Screenshots/Video
Found in Branch development
Commit ID from o3de/o3de Repository c3fa0d4a8b199f60a01473b21ba77510c368ae27