ShowCpuRegisters required for Line numbers?

delphi package - automated exception handling
Post Reply
FredS
Posts: 98
Joined: Mon May 11, 2015 9:42 pm

ShowCpuRegisters required for Line numbers?

Post by FredS »

Hi,

I received a bug report without line numbers and traced it to ShowCpuRegisters being turned off.
I don't see this mentioned in mad Help, bug or feature?

thanks

Fred
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ShowCpuRegisters required for Line numbers?

Post by madshi »

That sounds very weird. You can 100% reproduce that turning ShowCpuRegisters off will make line numbers stop working?
FredS
Posts: 98
Joined: Mon May 11, 2015 9:42 pm

Re: ShowCpuRegisters required for Line numbers?

Post by FredS »

madshi wrote:That sounds very weird. You can 100% reproduce that turning ShowCpuRegisters off will make line numbers stop working?
I could when I posted the msg now I can't. Not only does it work now on new builds but on old builds that I have submissions in FogBugz with missing line numbers. Those machines with FogBugz submission are in different countries and on different OS versions and of course the builds I have archived where used to do the initial testing..

Magic! :D
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ShowCpuRegisters required for Line numbers?

Post by madshi »

Weird!!
FredS
Posts: 98
Joined: Mon May 11, 2015 9:42 pm

Re: ShowCpuRegisters required for Line numbers?

Post by FredS »

From Windows 7
From Windows 7
LookNoLineNumbers.png (24.4 KiB) Viewed 7841 times
madshi wrote:Weird!!
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ShowCpuRegisters required for Line numbers?

Post by madshi »

Well, "Data.DB" and "DBAccess" are Embarcadero units, I think? Or 3rd party, but not yours? All the precompiled Embarcadero units will show no line numbers, unless you activate the option to use "Debug DCUs" in the project options.
FredS
Posts: 98
Joined: Mon May 11, 2015 9:42 pm

Re: ShowCpuRegisters required for Line numbers?

Post by FredS »

madshi wrote:Well, "Data.DB" and "DBAccess" are Embarcadero units, I think? Or 3rd party, but not yours? All the precompiled Embarcadero units will show no line numbers, unless you activate the option to use "Debug DCUs" in the project options.
It seems the line number column his hidden when this happens and visible when it includes my code or at least code that was compiled into the App. That would explain why I haven't seen the line numbers in the last few submissions.

The problem though is that the line column is hidden even when my code is in the callstack. Not among the top 5 but just below that. Like this:

main thread ($858):
008909db 012b app.exe Data.DB DatabaseError
008af87a 003a app.exe Data.DB TDataSet.CheckActive
010b1314 0004 app.exe DBAccess TCustomDADataSet.CheckActive
008b625f 000f app.exe Data.DB TDataSet.CheckBrowseMode
010b7238 0088 app.exe DBAccess TCustomDADataSet.FindKey
0129224e 001e app.exe DataMod TDataDM.UserGroupSIDExists <<
...
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ShowCpuRegisters required for Line numbers?

Post by madshi »

Is there a line number in the bug report text file in this case?
FredS
Posts: 98
Joined: Mon May 11, 2015 9:42 pm

Re: ShowCpuRegisters required for Line numbers?

Post by FredS »

No, and I just realized that DBAccess although third party was also compiled into the app from source.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ShowCpuRegisters required for Line numbers?

Post by madshi »

Does the map file created by Delphi contain line number information for these units? Of course checking that only makes sense if you can reproduce the missing line number problem with a freshly compiled version of your EXE on your development PC.
FredS
Posts: 98
Joined: Mon May 11, 2015 9:42 pm

Re: ShowCpuRegisters required for Line numbers?

Post by FredS »

I use Build Groups to create the Release version, it appears that in Berlin Update 1 the map file does not include all the line numbers. If I Build the same configuration via the IDE all Works!

From IDE: Search "Line numbers for" (1413 hits in 1 file)
From Build Group: Search "Line numbers for" (127 hits in 1 file)

Thanks EMB, and from now on I am saving MAP files with the archived Release EXEs.

Sorry about that..
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ShowCpuRegisters required for Line numbers?

Post by madshi »

No problem, glad to hear you found the cause of the problem.
Post Reply