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

Adjust behavior when clicking blocks in debug mode #1

Open
pdawyndt opened this issue Sep 16, 2023 · 0 comments
Open

Adjust behavior when clicking blocks in debug mode #1

pdawyndt opened this issue Sep 16, 2023 · 0 comments

Comments

@pdawyndt
Copy link
Contributor

pdawyndt commented Sep 16, 2023

In normal mode, clicking a block triggers the execution of the script containing the block. However, this may lead to unwanted behavior while in debug mode.

  • when copy-pasting a (sub)script, the click event when releasing (pasting) a copied (sub)script into an existing script, will also execute that script; this is unwanted if execution was pauzed halfway the script, so we should at least avoid that this click action also executes the script (may this is also what we want in normal mode)

  • execution a variable/expression as a separate script, executes the expressions and displays the return value

    image

    this would be a nice feature to have when execution is pauzed in debug mode, but

    • clicking a variable/expression that is embedded in a script will execute the entire script, not the variable/expression in isolation
    • creating a new script on the flow with only the variable/expression will clear the recorded history
      both option lead to unwanted behavior; so maybe we could no longer execute the script when a block from the script is clicked, and instead evaluate the variable/expression if the clicked block is a variable/expression embedded in a larger script; maybe we still want to provide the option to execute a script either by clicking a hat block (not the other blocks of the script) or by putting this as an option in the context menu of the blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant