-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displays traceback/js errors in the browser #130
Comments
Hey @macarena, I bet you could add this single-handedly and with your eyes closed... |
[PT] Em um projeto que vi interceptando o log, observei uma perda de performance considerável. Então já recomendo uma maneira de renderização desses logs no HTML da forma mais simples possível, sem parser ou tratamentos que sejam custosos ;) [EN] In a project that I saw intercepting the log, I noticed a considerable loss of performance. So I already recommend a way of rendering these logs in HTML in the simplest possible way, without parser or treatments that are costly;) |
Shining some light on this topic from OpenProcessing wisdom: Vamoss is correct that any interception and adding HTML elements to display errors and logs causes some performance drop, but it has its benefits as well. ie. user-friendliness etc. That's why I made it a user-preference option to toggle html console on/off. |
I have a feeling that #189 will be a facilitator to this task. The idea to expose a JS entry point as a Promise, will enable the client code to handle the errors raised from the promise. I'm just leaving this note here as a personal reminder =) |
This should also be added to the demo editor |
Currently people have to keep an eye in their browser's console for both js errors (if using transcrypt) and python errors (if using pyodide).
The ideal scenario would be to have some type of HTML element displaying all error messages that pop up in the browser's console.
The text was updated successfully, but these errors were encountered: