Description
Tested versions
- Tested in Godot v4.3.stable.official [77dcf97]
- Reproducible in both VSCode and SublimeText
- Unsure if it applies to any other editor
System information
Godot v4.3.stable - Windows 10.0.19045 - GLES3 (Compatibility) - AMD Radeon(TM) Vega 8 Graphics (Advanced Micro Devices, Inc.; 31.0.12027.9001) - AMD Ryzen 3 3200G with Radeon Vega Graphics (4 Threads)
Issue description
When using a external editor, files open 1 line before the expected line while debugging. Compare:
This happens with the official VSCode settings as well, which is why I tried a different one here.
I'm unfamiliar with how this works internally, but this seems to be the line that replaces the flag for the external editor:
godot/editor/plugins/script_editor_plugin.cpp
Line 2508 in 99a8ab7
And I found this case where it is being modified:
godot/editor/plugins/script_editor_plugin.cpp
Line 617 in 99a8ab7
It didn't seem like it was possible to modify the line flag directly in the editor settings in way (like adding a +1)
Steps to reproduce
- Configure a project with an external editor, like VSCode
- Use External Editor for Debugging
- insert a breakpoint at any line
- see the wrong line being open
Minimal reproduction project (MRP)
N/A
Metadata
Metadata
Assignees
Type
Projects
Status