mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
exceptions are not shown in the console #581
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FadyQJ on GitHub (Oct 26, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
I am not sure if this is a bug but under Ubuntu I am using:
app.UseDeveloperExceptionPage();even outside if (env.IsDevelopment())I am not seeing any exceptions thrown in the console. I only get:
Got disconnect! Reason: transport close
When I'm using windows it works correctly
@FadyQJ commented on GitHub (Oct 31, 2020):
I noticed that what is causing this is the throw is being called in the async Task.Run(async () => { }) function
So there is some detachment going on once a new thread is created.
If I throw e.g.
throw new System.ArgumentException("A", "B");outside the Task.Run I get the error.This is my first project using linux for C# as well as ASP.Net so this may be normal behavior for ASP
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
@Yuvix25 commented on GitHub (Aug 24, 2023):
@GregorBiswanger I still have this issue. If I throw an error from the main thread (
Configure), it shows up. But if it's thrown from an async task, (for example,Electron.App.Ready), it does not. Tried both with and withoutapp.UseDeveloperExceptionPage(). Any idea how to fix this?