Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-03

bug in debug-log code...

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

waldo kitty

i've noticed this consistent bug since i started using --debug-log= for my startlazarus... i do not think it stems from startlazarus but that it has been in place for a long time because i've seen it ever since i found how to do this with lazarus some many svn versions back...

the debug logs start like this...

Adding "--debug-log=lazdbg1.log" as a parameter
h="C:\Documents and Settings\username\Local Settings\Application Data\lazarus" SecondaryConfigPath="C:\freepascal\laz"

the very first part of that second line looks to be truncated... i'm betting that it should be something like

Adding "--debug-log=lazdbg1.log" as a parameter
PrimaryConfigPath="C:\Documents and Settings\username\Local Settings\Application Data\lazarus"
SecondaryConfigPath="C:\freepascal\laz"

which also seems to point to the third line starting with two spaces that should not be there...

Adding "--debug-log=lazdbg1.log" as a parameter
PrimaryConfigPath="C:\Documents and Settings\username\Local Settings\Application Data\lazarus"
SecondaryConfigPath="C:\freepascal\laz"

anyway, my point is that something is eating the first part of the second line... i suspect a string index counter error or translation string problem??

either way, it... ummm... bugs me... please forgive the pun...

Reply by email

Martin
to waldo kitty
waldo kitty wrote 7 lines
anyway, my point is that something is eating the first part of the second line... i suspect a string index counter error or translation string problem?? either way, it... ummm... bugs me... please forgive the pun...

Well my logfile looks ok (win32)

But, my guess is:Some lines a written by startlazarus, then mor lines by lazarus.exe

So probably 2 apps writing to the same file......

Reply by email

waldo kitty
to Martin
Martin wrote 9 lines
On 20/03/2012 15:53, waldo kitty wrote: > > > anyway, my point is that something is eating the first part of the second > line... i suspect a string index counter error or translation string problem?? > > either way, it... ummm... bugs me... please forgive the pun... Well my logfile looks ok (win32)

at the very start? yes, win32... on w2k...

But, my guess is:Some lines a written by startlazarus, then mor lines by lazarus.exe So probably 2 apps writing to the same file......

hummm... possible, i suppose... so i test...

i changed from

startlazarus --debug-log=lazdbg1.log

to

lazarus --debug-log=lazdbg1.log

and behold!

TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="C:\Documents and Settings\e3br42x1\Local Settings\Application Data\lazarus"
SecondaryConfigPath="C:\freepascal\laz"

so it does look like startlazarus is possibly holding onto the file too long... i see now why those two spaces are on the secondaryconfigpath line, too :)

but it is missing the line

Adding "--debug-log=lazdbg1.log" as a parameter

which i suppose startlazarus is writing... shouldn't lazarus report its command line parameters? this in addition to or in lieu of startlazarus reporting them in the same log?

Reply by email