Z
zydjohn
Guest
Hello:
I have some C# .net code using Puppeteer, most of the time, it works well. But sometimes, I see some errors, like the following:
PuppeteerSharp.PuppeteerException
HResult=0x80131500
Message=Protocol error (Runtime.callFunctionOn): Session closed. Most likely the Page has been closed.Close reason: Target.detachedFromTarget
As I just want to ignore this kind of error, so I write some code like this:
try
{
do something in C#
}
catch (PuppeteerException ex)
{
Console.Write(ex.Message);
}
My code worked before when I used VS 2019 Version 16.1; 16.2; but now, I am using VS 2019 Version 16.3.2
The above code simply not working in Debug mode, the program always stops at the catch statement.
I want to setup the exception setting to continue in this case, but failed.
I searched around, most of the articles about this issue seem just tell me how to break on this case, which is rather
narrow-minded, I just want to continue as this kind of error is not important.
Please advice on how to change the Exception Settings in Visual Studio 2019 Version 16.3.2 to continue when the exception is handled by user. Not to break at all!
Thanks,
Continue reading...
I have some C# .net code using Puppeteer, most of the time, it works well. But sometimes, I see some errors, like the following:
PuppeteerSharp.PuppeteerException
HResult=0x80131500
Message=Protocol error (Runtime.callFunctionOn): Session closed. Most likely the Page has been closed.Close reason: Target.detachedFromTarget
As I just want to ignore this kind of error, so I write some code like this:
try
{
do something in C#
}
catch (PuppeteerException ex)
{
Console.Write(ex.Message);
}
My code worked before when I used VS 2019 Version 16.1; 16.2; but now, I am using VS 2019 Version 16.3.2
The above code simply not working in Debug mode, the program always stops at the catch statement.
I want to setup the exception setting to continue in this case, but failed.
I searched around, most of the articles about this issue seem just tell me how to break on this case, which is rather
narrow-minded, I just want to continue as this kind of error is not important.
Please advice on how to change the Exception Settings in Visual Studio 2019 Version 16.3.2 to continue when the exception is handled by user. Not to break at all!
Thanks,
Continue reading...