I have been struggling with the same issue. I need to get a hex number from an edit box, so I used an EditField called editHex, and converted to a string using
GetHexValue reads the string and does the conversion.
This works fine if I just execute the program. But if run in the debugger and set a breakpoint on the strcpy line, I get the Microsoft "crash" dialog box with the message.
"gdb.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
If I comment out the strcpy, then gdb does not crash. I am using the windows version with the minGW compiler and the internal debugger. The EditField length is set to MAX_HEX_CHARACTERS.