Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Dialogs/Project Options    [ Add a report in this area ]  
Report #:  89080   Status: Closed
RTL Files are not on Debug Search Path
Project:  Delphi Build #:  3890
Version:    15.0 Submitted By:   Dennis Christensen
Report Type:  Basic functionality failure Date Reported:  10/19/2010 12:24:41 AM
Severity:    Serious / Highly visible problem Last Updated: 10/23/2010 2:06:04 AM
Platform:    All platforms Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When creating a new Delphi VCL application using RTL functions I expect to be able to check "Use debug DCU's" and step into the RTL source. This has been the case in previous Delphi version. In Delphi XE this does not work because RTL files are not on the debug source path.
When attempting to step into an RTL function eg. Pos the "Source File not Found" dialog is shown and one has to browse to the RTL source file eg. System.pas (C:\Program Files\Embarcadero\RAD Studio\8.0\source\rtl\sys\System.pas).
Steps to Reproduce:
1) Create a new Delphi Win32 VCL application
2) Add this code

procedure TForm1.FormCreate(Sender: TObject);
var
SubStr, S : string;
I : Integer;

begin
I := Pos(SubStr, S);
Form1.Caption := IntToStr(I);
end;

3) Add a breakpoint at the I := Pos.. line
4) Enable "Use Debug DCU's"
5) Compile and run
6) Try to step into Pos
Workarounds
Manually add the RTL source files locatations to the debug source path.
Attachment
None
Comments

Tomohiro Takahashi at 10/19/2010 9:47:02 PM -
> 6) Try to step into Pos
In my environment(clean install RAD Studio XE on Windows 7), I can not reproduce your issue.
Have you isntalled previous version of Delphi in your PC?

And, please reconfirm [Tool]|[Options...]|[Delphi option]|[Library]|[Browser search path] in your environment.

Server Response from: ETNACODE01