Share via

What a stupid debugging

валера карманов 396 Reputation points
2024-10-08T14:51:47.78+00:00

Explain to whom this nonsense is being displayed, what can be understood here?How can I find where the error occurred?????2024-10-08_17-49-45

Developer technologies | .NET | .NET Multi-platform App UI

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,166 Reputation points Microsoft External Staff
    2024-10-09T02:06:35.5733333+00:00

    Hello,

    For this error, C# provides an official document that explains the cause of this problem in detail. You can refer to NullReferenceException Class. for details.

    How can I find where the error occurred?????

    If there is no specific line number, you can add breakpoints to the initialization method, asynchronous method, and multi-threaded method in the application and perform single step debugging to find the specific cause.

    Please refer to Navigate code in the debugger using step commands for more details about Visual Studio debugging.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.