部署后如何处理Visual Studio代码执行两次(运行时) [英] How to handle Visual studio code executes twice after deployment (run time )

查看:306
本文介绍了部署后如何处理Visual Studio代码执行两次(运行时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,






我的Visual Studio代码两次给出结果。我认为它在部署后执行了两次。



当我尝试重复代码时,同一行代码运行两次。消息显示"自上一步以来进程或线程已更改" 
$ $ $ $ b $
我发现问题,该线程多次运行。如果我冻结其中一个相同的线程,它会给我1个结果。(这是正确的)。但是,这是在调试代码时完成的。 
$


如何在部署代码(运行时)后处理相同的内容。

Hi All,



My Visual studio code giving results twice. I think it is executing twice after deployment.

When I tried to dedug the code the same line of code is running twice . The message shows "The process or thread has changed since the last step" 

I figured out the issue, the thread is running multiple times. If I freeze one of the same thread it gives me 1 result.(which is correct). However, this is done while debugging the code. 

How to handle the same after deployment of code(run time).

任何人都可以帮助我。

推荐答案






我发现问题,线程多次运行。如果我冻结其中一个相同的线程,它会给我1个结果。(这是正确的)。但是,这是在调试代码时完成的。 
$



I figured out the issue, the thread is running multiple times. If I freeze one of the same thread it gives me 1 result.(which is correct). However, this is done while debugging the code. 


那么你的程序就是错误的。您需要修复它,而不是部署它。

Then your program is buggy. You need to fix it, not deploy it.


这篇关于部署后如何处理Visual Studio代码执行两次(运行时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆