pxt
pxt copied to clipboard
Navigating from "data Simulator" view back to code view restarts the program
Bug Template
Describe the bug Navigating from "data Simulator" view back to the code view restarts the program
To Reproduce Steps to reproduce the behavior:
- Create a one-line program to print "Hello World!" using the console log/print function
- Run the program
- Click "Show data Simulator" button to view the printed output
- Click the "go back" button to return to the code view.
At this point, the program restarts.
Expected behavior Application should not restart when the "go back" button is clicked. Scenario demonstrating why this would be useful:
- Developer writes code that interacts with the user via IO and sets up the program state.
- The developer switches to the "data Simulator" view to check the state of the application.
- At this point, the developer should be able to view the code without that triggering a restart of the program.
Ideally, "data Simulator" and code views can be viewed side-by-side. But at a minimum, the program shouldn't restart just because of a view change.