Hello,
My plugins (https://github.com/ik5/split_lazarus) does almost all I want it to do, but not the way I want it to be made. What are the best ways to debug my code inside Lazarus ?
Thanks,
Ido

Mailing lists / lazarus / 2013-01
6 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
My plugins (https://github.com/ik5/split_lazarus) does almost all I want it to do, but not the way I want it to be made. What are the best ways to debug my code inside Lazarus ?
Thanks,
Ido
Either debug the entire IDE (open ide/lazarus.lpi and hit F9), or write a test case.
In which case, it may be helpful to use a 2nd primar-config-path, for diff window locations (or colors)... (I personally do not, I move them each time)
or write a test case.
I'm not sure that I understand you
How can I write a test case for such thing ?
I mean, it uses internal IDE stuff ...
Well I just run the IDE in the debugger. That happens if I open ide/lazarus.lpi and hit F9
But it has the danger of mixing up debuggee and debugger
So if you use -pcp= in "run params" then you can save different window locations, or diff editor colrs, even diff config, and even load a diff lazarus.exe (as long as it is in sync with the ource you have open)
As I said, I do not use -pcp, I just move the window, after the debuggee . I have 2 screens so enough space
>> or write a test case. How can I write a test case for such thing ? I mean, it uses internal IDE stuff ...
The debugger has the same issue.
That is where I use the ide.lpk
You MUST rebuild the IDE from the tools menu, and then compile the test, if the test uses this package.
You get real nasty errors, if you compile the test, and it tries to compile the package !!!! Real nasty. ppu in wrong location. Only fix, by find and delete ppu
Ended up using Debugln, and still can't figure out the problems I'm having (a new question to the mailing list)