numberscope / frontscope

Numberscope's front end and user interface: responsible for specifying sequences and defining and displaying visualizers
MIT License
7 stars 14 forks source link

Errors in Numberscope while developing should be traceable #280

Open katestange opened 2 months ago

katestange commented 2 months ago

When developing a visualizer and you get an error, instead of going to the console, it goes to a dialog popup. Which is the desired behaviour we added. Except that it doesn't say useful info like what line caused the error. So it's more difficult to debug now. Is there a way to either let the error info go to the console also, with a line number, or something else?

gwhitney commented 2 months ago

I second the motion to have a debug mode that just lets the error occur rather than catching it. What I do at the moment is comment out the following lines in main.ts as needed:

app.config.errorHandler = e => {
    window.alert(alertMessage(e))
}