This "Cannot insert breakpoint ... ... Error accessing memory address ... Input/output error" problem is occurring in Windows 10 (and 7) in Lazarus version 2.0.4; I have just upgraded to 2.0.6. THE PROBLEM HASN'T GONE AWAY.
The code I am using is imported from Linux where it performs perfectly. So seemingly a Windows interaction problem (which 2.0.6 hasn't fixed). Most annoying : I seem to have had a similar [?] problem with Linux a while ago which Pierre Muller fixed with 4 replacement files for FPC 3.0.4 - something to do with an outdated compiler. But that is history!
Since my Linux version works properly can't someone sort out why Windows (or the gdb), or whatever, is misbehaving?
One thing I have noticed is that a black-filled rectangle (the konsole?) flashes briefly prior to the program opening (when it does run!). My exe program, which is actually created, seems to run outside Lazarus and gives a "File not open" error in one situation - not so with the Linux equivalent!?