Sign in Join

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

Mailing lists / lazarus / 2011-06

How to use Lazrus IDE as a test case?

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Martin
to Hans-Peter Diettrich: Currently I want to modify a component, that also is used in the IDE. Consequently I want…
Hans-Peter Diettrich wrote
Currently I want to modify a component, that also is used in the IDE. Consequently I want to use the IDE as a test case, covering many issues not found in simple test programs. Now I ran into a strange problem:

"test case" as in "automated test", or as in "application to test within" ?

When I want to debug Lazarus.lpi, it seems to behave properly, but when I then rebuild the IDE, it exposes a different behaviour, e.g. hangs on startup :-(

press "pause" and see where?

I already tried to rebuild the IDE *without* making it the new Lazarus.exe, but even then Lazarus.lpi behaves differently from Lazarus.new.exe :-(

Not sure what you mean....

What can I do, to debug Lazarus.new.exe or equivalent?

I usually have no such issues.
- Open project lazarus.lpi (as you have done)
- In "run params", slect the exe you whish to test
- In run params, make sure you use the correct config directory (--primary-config-path).

Reply by email

Hans-Peter Diettrich

Currently I want to modify a component, that also is used in the IDE. Consequently I want to use the IDE as a test case, covering many issues not found in simple test programs. Now I ran into a strange problem:

When I want to debug Lazarus.lpi, it seems to behave properly, but when I then rebuild the IDE, it exposes a different behaviour, e.g. hangs on startup :-(

I already tried to rebuild the IDE *without* making it the new Lazarus.exe, but even then Lazarus.lpi behaves differently from Lazarus.new.exe :-(

What can I do, to debug Lazarus.new.exe or equivalent?

BTW, where has gone "Build IDE *with* packages"?

DoDi

Reply by email

Hans-Peter Diettrich
to Martin: "test case" as in "automated test", or as in "application to test within" ? press "pause"…
Show quoted text 6 lines
On 24/06/2011 17:07, Hans-Peter Diettrich wrote: > Currently I want to modify a component, that also is used in the IDE. > Consequently I want to use the IDE as a test case, covering many > issues not found in simple test programs. Now I ran into a strange > problem: "test case" as in "automated test", or as in "application to test within" ?

The latter. When the component has passed basic tests, I want to test its integration into the IDE.

> When I want to debug Lazarus.lpi, it seems to behave properly, but > when I then rebuild the IDE, it exposes a different behaviour, e.g. > hangs on startup :-( press "pause" and see where?

The new IDE only hangs, when started. No forms... :-(

> I already tried to rebuild the IDE *without* making it the new > Lazarus.exe, but even then Lazarus.lpi behaves differently from > Lazarus.new.exe :-( Not sure what you mean....

Before the LCL became a package, I had to recompile the LCL and IDE manually (except linking), then I could run Lazarus.lpi to test the new IDE. This procedure seems to work no more :-(

Show quoted text 5 lines
> What can I do, to debug Lazarus.new.exe or equivalent? I usually have no such issues. - Open project lazarus.lpi (as you have done) - In "run params", slect the exe you whish to test

Ah, that did the trick :-)

DoDi

Reply by email

José Mejuto
to Hans-Peter Diettrich

Hello Lazarus-List,

you wrote
>> When I want to debug Lazarus.lpi, it seems to behave properly, but >> when I then rebuild the IDE, it exposes a different behaviour, e.g. >> hangs on startup :-( > press "pause" and see where?

HPD> The new IDE only hangs, when started. No forms... :-(

If you are on Win32 check the debug.txt file, quite sure an exception is begin raised and you will see it in this file.

Best regards, Jos?

Reply by email

Hans-Peter Diettrich
to José Mejuto
Show quoted text 8 lines
>>> When I want to debug Lazarus.lpi, it seems to behave properly, but >>> when I then rebuild the IDE, it exposes a different behaviour, e.g. >>> hangs on startup :-( >> press "pause" and see where? HPD> The new IDE only hangs, when started. No forms... :-( If you are on Win32 check the debug.txt file, quite sure an exception is begin raised and you will see it in this file.

Now I could debug the exe, and found an infinite loop :-( No AV so far, perhaps it takes a long time until the stack overflows.

DoDi

Reply by email