为什么此代码仅在我使用断点时才有效?

发布于 2024-07-10 20:39:36 字数 482 浏览 7 评论 0原文

请参阅下面的代码,由于某种原因,它仅在我在第 2 行 (*) 上放置断点时才有效,是否有一些延迟? 它是否在完成第二行之前开始下一行?

dp.SSLCertStoreType = nsoftware.IBizPayPal.DirectpaymentSSLCertStoreTypes.sstPEMKey

*dp.SSLCertStore = My.Computer.FileSystem.ReadAllText(Server.MapPath("\cert_key_pem.txt"))


dp.SSLCertSubject = "*"

注意:只有在第2行设置断点时,才会在第3行抛出错误,释放断点后,程序会执行我通过信用卡进行的paypal购买。

我将再次发布该错误,我现在正在复制它...

系统错误:无法获取安全凭证:错误 8009030E。

就在那里,它应该显示“订单已确认!” 如果工作正常,请键入消息。

See code below, for some reason it only works when I put a breakpoint on line 2 (*) is there some delay? Is it starting the next line before it finishes the 2nd one?

dp.SSLCertStoreType = nsoftware.IBizPayPal.DirectpaymentSSLCertStoreTypes.sstPEMKey

*dp.SSLCertStore = My.Computer.FileSystem.ReadAllText(Server.MapPath("\cert_key_pem.txt"))


dp.SSLCertSubject = "*"

Note: The error is thrown on the 3rd line only when the breakpoint is set on the 2nd line, after releasing the break the program executes my paypal purchase via credit card.

I will post the error again I am replicating it now...

System error: Could not acquire security credentials: error 8009030E.

There it is, while it should say "Order Confirmed!" type message if working correctly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

美羊羊 2024-07-17 20:39:36

几乎可以肯定是线程问题,但没有人能够明确回答,除非他们熟悉 nsoftware.IBizPayPal

Almost certainly a threading issue, but nobody is going to be able to answer definitively unless they're familiar with nsoftware.IBizPayPal

一场春暖 2024-07-17 20:39:36

有时您会发现,由于局部窗口评估对象属性,破坏可能会改变对象的状态。 如果它们有副作用,那么不幸的是,所有的赌注都会被取消:( 不知道这是否发生在你的情况下。

Sometimes you can find that breaking can mutate an object's state, due to the locals window evaluating object properties. If they have a side-effect, then all bets are off, unfortunately :( No idea whether this is happening in your case.

淑女气质 2024-07-17 20:39:36

我对ASP一无所知,所以只是想知道:这可能是由于多线程造成的吗? 您知道,当您设置断点时,您会冻结所有线程的执行,但在实际执行中并非如此。

I have no knowledge of ASP, so just wondering aloud: Could this be due to multithreading? You know when you put a break point you sort of freeze execution of all threads, but not so in the real execution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文