Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow users to inspect pictures in Debug Mode #509
This PR adds a way of inspecting pictures in Debug Mode which is activated by clicking the Inspect button when the program is being run. Clicking on parts of a picture in debug mode will show the "stack" of what the piece is and which ways it was transformed. This will also cause parts of the user's code to be highlighted indicating where the creation and transformations took place.
Finding source locations is accomplished via GHC stack traces which are now stored in each Picture. All functions for creating and transforming pictures is given
Currently, debug mode only works for the drawingOf entrypoint, but I plan to add support for animationOf, simulationOf, interactionOf and possibly collaborationOf as well.