Skip to content

File upload crushes in debug mode #391

@AlexeyBoyko

Description

@AlexeyBoyko

For some reason it is not possible to debug my Blazor Server (NET 7.0) implementation of ICrudFileService because in debug mode file upload simply crushes without logging any messages to the console. Perhaps it is somehow related to the "File chooser dialog can only be shown with a user activation." problem which I encounter while debugging step-by-step ButtonFileClicked method. I was also able to hit breakpoint in OnChange() method of GridCreateComponent, but then it immediately crushes without any exceptions (adding try-catch inside OnChange and ErrorBoundary in my main layout didn't help to catch something). Seems that the process is simply killed.
Upd: Eventually I have managed to debug my error since it occured to be earlier in ICrudDataService which does not depend on file upload component. Still, it is quite complex to debug file processing code (if one needs to) without debug mode with just writing "breakpoints" to console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions