Visual D no bp's on x64

Rainer Schuetze via Digitalmars-d-debugger digitalmars-d-debugger at puremagic.com
Sun Aug 6 11:44:36 PDT 2017



On 06.08.2017 05:21, FoxyBrown wrote:
> On Sunday, 6 August 2017 at 03:12:22 UTC, FoxyBrown wrote:
>> On Thursday, 3 August 2017 at 20:22:56 UTC, Johnson Jones wrote:
>>> On Thursday, 3 August 2017 at 07:06:06 UTC, Rainer Schuetze wrote:
>>>> [...]
>>>
>>> Thanks! Seems to be working.
>>
>> well, in x86 I still get a few BP's that won't be hit every once in a 
>> while(well, happened for the first time since I've used the new release).
>>
>>
>> The code looks like
>>
>> while(i < data.length && data[i] != '>' && data[i] != '"' && 
>> data[i..i+token2.length] != token2) i++;
>> if (data[i] == '>') { continue; }
>>
>> I put a BP on the if and when ran it says it won't be hit. I have a BP 
>> right above it and below it and it works fine.
>>
>> says "The BP will not currently be hit. No symbols have been loaded 
>> for this document.". I do not know why symbols really matter for BP's?
>>
>>
>> If I change the if statement to
>>
>>             if (data[i] == '>')
>>             {
>>                 continue;
>>             }
>>
>> it works ;/
> 
> Oops, it "works". The BP icon is no longer a hollow read disk but it is 
> simply not hit ;/
> 
> I know all this doesn't help much but it all seems to be related to the 
> previous bugs.

It would be good if you could post the full function, even better a 
complete compilable file exposing the problem.

I suspect dmd just doesn't produce proper debug information. For example 
"continue" is often optimized away due to some branches even removed in 
debug code.


More information about the Digitalmars-d-debugger mailing list