I recently learned that this was the case because my project crashed when I was doing exercises at the front-end, but there was no problem running under release. So I am depressed, and the entire program cannot use breakpoint debug. After the program is written, I can only rely on printf to output debugging information on the console to determine the cause of the error ......
Later, an experienced programmer in our group helped us find the problem. I was told that the debug and release implementations of these functions in vs were inconsistent only when the program collapsed in a scanf_s reading file. Some parts of my code were not correctly written, however, debugging is more rigorous, so it crashes ......
Another problem is that when my socket server runs under debug, the accept function is always not blocked and an invalid socket is returned. It works normally under relase ...... Later I found the cause, and the last accept parameter was wrong ......
In fact, I just want to say that, in general, there must be a reason for the strange problem ......