PyTorch and Visual Studio 2019. Exception in Dimname.h

When I start my project everything is fine but when I start debug mode I get the following message:

“An unhandled exception occurred at address 0x000007FEFD7FB3DD in NerualNetwork.exe: Microsoft C ++ exception: std :: length_error at memory address 0x000000000014F420.”

This message is issued about the line code “static Symbol kWildcard = Symbol::dimname(”*");" in the file “Dimname.h”

How can I fix it?

The question is closed. The error was that I used the release version in the debug project.