After installing my new design package Lazarus stopped running. lazarus / 61-Beginners ---------------------------------------------------------------------- dmitryb · 2014-04-15 20:02 Hi All I wrote my new Design package and tried to install it into the Lazarus IDE (Windows). After installing it Lazarus stopped running. On run it appears and immediately disappears from the windows task list. What can I do? Best regards Dmitriy Bolshakov ---------------------------------------------------------------------- engkin · 2014-04-15 20:07 In your Lazarus folder there is a copy of your previous executable. Make another copy of it and use it to start Lazarus. ---------------------------------------------------------------------- dmitryb · 2014-04-15 20:17 Thank you. I run lazarus.old.exe and removed my 'bad' package from the installed packages. lazarus.exe runs now. But how can I debug what is wrong with my package? I think a problem is in the procedure Register. ---------------------------------------------------------------------- Blaazen · 2014-04-15 20:36 We can't say until we can look to the code. But procedure Register only adds component + icon to the palette, it can hardly crash Lazarus. You can try to add units of your package to a new project and create component at run-time (via code). You can add to your code: Code: [Select]DebugLn('some message'); to suspicious places and watch output. ---------------------------------------------------------------------- engkin · 2014-04-15 20:52 You can open Lazarus project just like any other project. See here ---------------------------------------------------------------------- Martin_fr · 2014-04-15 20:58 You can debug the IDE, by opening the project ide/lazarus.lpi and then run with F9 You may want to specify an alternative -primary-config-path in "run params" (run menu), but it is not necessary. Note that unlike other projects, before running with F9, you must ensure you did rebuild the IDE (but do not restart it) Check that the rebuild replaced the lazarus.exe. In very rare cases it may create a lazarus.new.exe (if previous debugging failed really bad, and locked the exe) Also ensure that your package has debug info, and that you add debug info ( -gw ) in "Configure build lazarus" I advice to make your own copy of lazarus.exe, because eventually the lazarus.old.exe may be overridden with a bad copy too. ---------------------------------------------------------------------- dmitryb · 2014-04-15 21:24 I created new project and added all files of my package to it. On run I got error in the initialization part of one of the modules. I fixed it   {$IFDEF FPC}   if Screen.Cursors[Result] = 0 then   {$ELSE}   if Screen.Cursors[Result] = Screen.Cursors[crArrow] then   {$ENDIF} and after that new package started to work in IDE. By the way in Lazarus Screen.Cursors[Unexisted Cursor] returns 0, but not Screen.Cursors[crArrow] like in Delphi But thank you for tip about debugging IDE under other IDE.