ndmitchell / debug

Haskell library for debugging
BSD 3-Clause "New" or "Revised" License
122 stars 7 forks source link

Browser back and forward buttons don't work #13

Closed pepeiborra closed 6 years ago

pepeiborra commented 6 years ago

The html frontend should build a history of visited function calls during a debugging session.

pepeiborra commented 6 years ago

Tested in Chrome and Safari, don't work in either.

ndmitchell commented 6 years ago

It doesn't work deliberately. It also can't work when hosted as a file on the local file system, as the browser methods to do it only work over http. Furthermore, is it really a useful feature? If forward/back do make sense they could be implemented in the HTML itself.

pepeiborra commented 6 years ago

It is a reasonably useful feature imho when navigating the call stack.

ndmitchell commented 6 years ago

I have a better idea for a visualisation for the call stack. Let's use this ticket to improve that visualisation, hopefully after which you will not want forward/back buttons.

pepeiborra commented 6 years ago

Sure, but I am skeptical. No matter how the call stack is rendered, I suspect that navigating it will want for back/forward controls.