Hello,
I just discovered(?) this mildly annoying bbbbuuuuggggg in Delphi 2007,
"Inconsistent Breakpoint Location"
See below:
// *** Begin of Demonstration ***
program Project1;
{$APPTYPE CONSOLE}
{
Test inconsistent break point location
version 0.01 created on 4 may 2008 by Skybuck Flying.
Tested on Delphi 2007.
Weird bug in compiler, ide or debugger ???! ;)
See below:
}
uses
SysUtils;
procedure InconsistentBreakPointLocation( Para : integer );
begin
writeln( 'Such a Bull****: ', Para );
end;
procedure Main;
begin
InconsistentBreakPointLocation
( // <- breakpoint must be set here
100
);
InconsistentBreakPointLocation // breakpoint here
(
200
);
InconsistentBreakPointLocation // breakpoint here
(
300
);
end;
begin
try
Main;
except
on E:Exception do
Writeln(E.Classname, ': ', E.Message);
end;
readln;
end.
// *** End of Demonstration ***
Bye,
Skybuck.