Sign in Join

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

Mailing lists / lazarus / 2016-06

programming and testing ide design time package

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Marc Santhoff

Hi,

if writing an IDE extension, how would the setup for testing it look like?

Assuming:
- the package registers a menu entry
- it does some design time manipulations according to the users/programmers wishes

The code is written and compiled. Then it needs to be installed in the IDE and tested. How can I do it in a handy way?

TIA,
Marc

Marc Santhoff

Reply by email

Juha Manninen
to Marc Santhoff
Marc Santhoff wrote
The code is written and compiled. Then it needs to be installed in the IDE and tested. How can I do it in a handy way?

You can debug the IDE by opening lazarus.lpi project and pressing F9. Lazarus must be built with debug info before that. Another way to debug is by adding DebugLn() calls and checking their output in console or log file.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160606/19795c66/attachment.html>

Reply by email

Marc Santhoff
to Juha Manninen
Juha Manninen wrote 10 lines
On Monday, June 6, 2016, Marc Santhoff wrote: > > The code is written and compiled. Then it needs to be installed in the > IDE and tested. How can I do it in a handy way? > You can debug the IDE by opening lazarus.lpi project and pressing F9. Lazarus must be built with debug info before that. Another way to debug is by adding DebugLn() calls and checking their output in console or log file.

OK, so there is no other way but actually compiling the extension in.

What I will try is to make the shim between IDE coupling an the rest as thin as possible, so anything else can be tested separately before.

Thanks,
Marc

Marc Santhoff

Reply by email

Mattias Gaertner
to Marc Santhoff
Show quoted text 11 lines
On Mo, 2016-06-06 at 20:18 +0300, Juha Manninen wrote: > On Monday, June 6, 2016, Marc Santhoff wrote: > > > > The code is written and compiled. Then it needs to be installed in the > > IDE and tested. How can I do it in a handy way? > > > > You can debug the IDE by opening lazarus.lpi project and pressing F9. > Lazarus must be built with debug info before that. > Another way to debug is by adding DebugLn() calls and checking their output > in console or log file.

Hint: you can have multiple Lazarus instances, using the --pcp command line switch.

OK, so there is no other way but actually compiling the extension in.

Well, you can create a project and compile your extension into that. Of course than you can only test a few parts.

What I will try is to make the shim between IDE coupling an the rest as thin as possible, so anything else can be tested separately before.

Good idea.

Mattias

Reply by email

Marc Santhoff
to Mattias Gaertner
Mattias Gaertner wrote 17 lines
On Mon, 06 Jun 2016 22:43:04 +0200 Marc Santhoff wrote: > On Mo, 2016-06-06 at 20:18 +0300, Juha Manninen wrote: > > On Monday, June 6, 2016, Marc Santhoff wrote: > > > > > > The code is written and compiled. Then it needs to be installed in the > > > IDE and tested. How can I do it in a handy way? > > > > > > > You can debug the IDE by opening lazarus.lpi project and pressing F9. > > Lazarus must be built with debug info before that. > > Another way to debug is by adding DebugLn() calls and checking their output > > in console or log file. Hint: you can have multiple Lazarus instances, using the --pcp command line switch.

Ah, I didn' think about it, thanks.

A bit confusing at first, solving the chicken-egg-problem by getting another chicken... ;)

Getting hungry now,
Marc

Marc Santhoff

Reply by email