Code not working when running normally, but working in debug (eclipse)

前端 未结 4 1154
情话喂你
情话喂你 2021-01-12 06:17

I\'m really confused by this: some of my code is not working when i run my program normally in eclipse, but it does wok when i run through each step separately using the deb

4条回答
  •  借酒劲吻你
    2021-01-12 07:00

    I had a very similar problem with a "while" loop that wouldn't run and that loop was my main routine. How I got the loop to run was that the very first thing that was done in the loop was a sleep:

        try
            {Thread.sleep(0);}
        catch (Exception e)
            {e.printStackTrace();}
    

    This was enough to get everything going.

提交回复
热议问题