debug: habilita DevTools e captura erros JS no Photino
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
724983e96c
commit
ad5312ba10
@ -11,7 +11,8 @@
|
|||||||
"Bash(taskkill:*)",
|
"Bash(taskkill:*)",
|
||||||
"Bash(git add:*)",
|
"Bash(git add:*)",
|
||||||
"Bash(git commit:*)",
|
"Bash(git commit:*)",
|
||||||
"Bash(xargs ls:*)"
|
"Bash(xargs ls:*)",
|
||||||
|
"Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); [print\\(e['Route']\\) for e in d.get\\('Endpoints',[]\\)[:20]]\")"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@ class Program
|
|||||||
app.MainWindow
|
app.MainWindow
|
||||||
.SetTitle("VideoStudy")
|
.SetTitle("VideoStudy")
|
||||||
.SetSize(1280, 800)
|
.SetSize(1280, 800)
|
||||||
|
.SetDevToolsEnabled(true)
|
||||||
.Center();
|
.Center();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|||||||
@ -24,7 +24,18 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
<script src="_framework/blazor.modules.js" type="module"></script>
|
<script>
|
||||||
|
window.onerror = function(msg, url, line, col, error) {
|
||||||
|
document.getElementById('app').innerHTML =
|
||||||
|
'<div style="color:red;padding:2rem;font-family:monospace;">' +
|
||||||
|
'<b>Erro JS:</b><br>' + msg + '<br>' + url + ':' + line + '</div>';
|
||||||
|
};
|
||||||
|
window.addEventListener('unhandledrejection', function(e) {
|
||||||
|
document.getElementById('app').innerHTML =
|
||||||
|
'<div style="color:red;padding:2rem;font-family:monospace;">' +
|
||||||
|
'<b>Promise rejeitada:</b><br>' + (e.reason?.message || e.reason) + '</div>';
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<script src="_framework/blazor.photino.js"></script>
|
<script src="_framework/blazor.photino.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user