Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUGGESTION] Unity Debugger Jump/Set Next Statement #1755

Open
colinday opened this issue Feb 8, 2025 · 1 comment
Open

[SUGGESTION] Unity Debugger Jump/Set Next Statement #1755

colinday opened this issue Feb 8, 2025 · 1 comment
Assignees
Labels
area-unity Unity support enhancement New feature or request fixed-pending-release
Milestone

Comments

@colinday
Copy link

colinday commented Feb 8, 2025

Describe the feature you'd like

In the debugger, there is no way to move the execution pointer to another statement, all you can do is step around, run to cursor, continue, etc. This is a feature supported by other Unity debuggers including Visual Studio, and Rider, but seems to be disabled or not supported for VSCode. This is a dealbreaker feature for many developers as it eliminates an absolutely crucial debugging strategy that is already available in other Unity debuggers and IDEs.

Current Behavior:
Enter debugger at breakpoint, attempt to move the execution pointer from the current line to a previous line by dragging the yellow arrow does not work and there is no right click menu option to do so either. Note that right click does contain a "Run To Cursor" item, which is not the same as "Jump To Cursor" or "Set Next Statement" which would immediately move the execution point to the desired line within the current stack without running any code.

Expected Behavior
In the debugger one can move the execution pointer to a previous line within the same scope by either dragging the arrow or a right mouse button menu option

Image

Alternatives considered

There is no alternative to this missing crucial feature, so until then I am forced to use Rider or Visual Studio which supports this.

Environment Information

Extension Version: v1.0.5 - December 3, 2024
VSCode Version: 1.97.0
Unity Version: 2022.3.7f1

@colinday colinday added the enhancement New feature or request label Feb 8, 2025
@colinday colinday changed the title [SUGGESTION] Debugger Jump/Set Next Statement (Dealbreaker Feature) [SUGGESTION] Unity Debugger Jump/Set Next Statement Feb 9, 2025
@sailro sailro added the area-unity Unity support label Feb 10, 2025
@jbevain jbevain self-assigned this Feb 10, 2025
@jbevain
Copy link
Member

jbevain commented Feb 10, 2025

Hi @colinday. Thanks for reporting this. Makes complete sense, we'll add support for Jump to cursor.

@jbevain jbevain added this to the Feb2025 milestone Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-unity Unity support enhancement New feature or request fixed-pending-release
Projects
None yet
Development

No branches or pull requests

3 participants