Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Automatically stop and resume execution before hitting maxCommandChainLength #49

Open
Adrodoc opened this issue Oct 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Adrodoc
Copy link
Member

Adrodoc commented Oct 8, 2021

When debugging large datapacks it can happen that more than maxCommandChainLength commands are executed. This is really bad as it leaves the debugger in an undefined state.
Instead of requiring the user to stop the debugging session and increase the limit with /gamerule maxCommandChainLength 2147483647 we could query the value with

execute store result score maxCommandChainLength -ns-_global run gamerule maxCommandChainLength

and stop early before reaching that limit as if we would hit a breakpoint (but ideally with a different message) and immediately schedule resumption.

@Adrodoc Adrodoc added the enhancement New feature or request label Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant