pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

Kind is not part of the debugger sprite variable

Open abchatra opened this issue 5 years ago • 4 comments

Using 'set to kind ' the kind isn't listed in the sprite's list of properties.

To Reproduce Steps to reproduce the behavior:

  1. Start debugging
  2. Click on any sprite variable

kind is an important property of sprite which is missing.

abchatra avatar Apr 04 '19 05:04 abchatra

Some other feedback from blockly folks:

• Kind of awkward that you can't edit code while in debug mode. • Using 'set to kind ' the kind isn't listed in the sprite's list of properties. • Pause stops on the next block to be executed, but if there's nothing executed everything seems to just keep running. It might make more sense to pause game state with a message that no blocks are currently executing. • It would be nice if there was an easier way to start the debugger paused. This is possible now by adding a breakpoint on the first statement in on start, but could also be handy if pausing then restarting would restart everything paused on the first block to execute. • It's not obvious when starting the debugger that break points have appeared on all the blocks (also not intuitive what they're for unless you've used breakpoints before). • When I paused the debugger and then restarted the game I couldn’t move around the character. Once I moused over the simulator everything seemed to work again. I was testing on the asteroid game.

abchatra avatar Apr 04 '19 05:04 abchatra

We set which properties we want to show for each type via comment attributes. If we want to show Kind, you can add "callInDebugger" attribute here, and on any getters you want to add. The only issue is that we would be showing the kind number, and I'm not sure if that's the request.

I agree that pause is weird when there's no code running forever, or on game update. But I don't know if there's a good solution to this. When would you show this message? After x miliseconds without blocks running?

Starting debugger paused should be doable if we'd decide to go in that direction.

Added https://github.com/Microsoft/pxt-arcade/issues/876 to keep track of last bullet point

gushuro avatar Apr 05 '19 00:04 gushuro

Also data not visible.

pelikhan avatar Jul 06 '20 15:07 pelikhan

Still repros.

abchatra avatar Oct 14 '22 18:10 abchatra