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

Editor: remember breakpoints in workspace state #2384

Open
ivan-mogilko opened this issue Apr 13, 2024 · 0 comments
Open

Editor: remember breakpoints in workspace state #2384

ivan-mogilko opened this issue Apr 13, 2024 · 0 comments
Labels
context: ui/ux type: enhancement a suggestion or necessity to have something improved what: editor related to the game editor

Comments

@ivan-mogilko
Copy link
Contributor

Suggestion is to serialize breakpoint positions in the project script, and restore them when opening a project once again.

When testing certain case, or debugging some problem, sometimes we have to restart the project, or open it later, and it would be convenient to have breakpoints restored automatically, instead of setting them in all places again.

There may be a new option in preferences which toggles this behavior, like "Restore breakpoints when opening a project".

Breakpoint position is made of script name and line number.
The list of breakpoints could be serialized by ScriptsComponent class, by implementing IPersistUserData interface and its methods (that will correspond to saving and reading a chunk in Game.agf.user file).
(See how DebugLogComponent is doing this, for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context: ui/ux type: enhancement a suggestion or necessity to have something improved what: editor related to the game editor
Projects
None yet
Development

No branches or pull requests

1 participant