Our C# application works fine in executable, but it will suddenly has no response in debug mode, and we have to stop the program via debug menu.
After investigation, it was found that there has no return in the execution of the following statement if json contain a very large json object.
jsonString = Json.Encode(json);
We are using System.Web.Helpers.Json to encode the json object, when the object getting large, it will cause timeout in debug mode. We have tried to add a watch for Json.Encode(json), it will return "Evaluation timed out".
Although it won't cause any problem in our production version, but it has problem in debugging the application as the application hang whenever executing this statement.
We also found that this problem only occurred in the Windows 7 machine, and there has no problem in Windows 10 machine. So we have to use the Windows 10 machine for debug.
It seems that there has some limitation in debug mode under Windows 7 which does not allow such long execution statement. May I know if there has any way to config such timeout setting in debug mode?