I have this line of code inside of a try catch block....
FAA.BLL.FileUpload.StagingUploader.AddFileHeader(FileHeader)
not sure if it matters that its inside a try catch block. But my question is, is there some reason why I am unable to step through the procedure AddFileHeader. Thanks !
not sure if it matters that its inside a try catch block. But my question is, is there some reason why I am unable to step through the procedure AddFileHeader. Thanks !
To determine why the AddFileHeader method was not implemented step by step, you can troubleshooting the issue by following these steps:
First, is AddFileHeader a custom method? When you mouse over AddFileHeader and click F12, does it jump to the AddFileHeader method? If so, you need to press F9 in the AddFileHeader method to hit a breakpoint.
Second, when your code executes, put a breakpoint on the module where the try catch is located, check whether the program is executed in the try or catch,
and confirm whether your code is in the block of statements being executed.
Finally, how did you discover that you couldn't step through the AddFileHeader method? Are there any errors or exception reminders?
Here is a microsoft official reference document about breakpoints in c#:
Member
282 Points
298 Posts
Unable to break on a procedure
Dec 16, 2019 10:31 PM|rkrex|LINK
I have this line of code inside of a try catch block....
FAA.BLL.FileUpload.StagingUploader.AddFileHeader(FileHeader)
not sure if it matters that its inside a try catch block. But my question is, is there some reason why I am unable to step through the procedure AddFileHeader. Thanks !
Contributor
3710 Points
1043 Posts
Re: Unable to break on a procedure
Dec 17, 2019 03:19 AM|Yongqing Yu|LINK
Hi rkrex,
To determine why the AddFileHeader method was not implemented step by step, you can troubleshooting the issue by following these steps:
First, is AddFileHeader a custom method? When you mouse over AddFileHeader and click F12, does it jump to the AddFileHeader method? If so, you need to press F9 in the AddFileHeader method to hit a breakpoint.
Second, when your code executes, put a breakpoint on the module where the try catch is located, check whether the program is executed in the try or catch, and confirm whether your code is in the block of statements being executed.
Finally, how did you discover that you couldn't step through the AddFileHeader method? Are there any errors or exception reminders?
Here is a microsoft official reference document about breakpoints in c#:
Tutorial: Learn to debug C# code using Visual Studio
Best Regards,
YongQing.
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.