Recent

Author Topic: Debug lazarus IDE Windows  (Read 419 times)

Andrey Sobol

  • New Member
  • *
  • Posts: 41
Debug lazarus IDE Windows
« on: November 06, 2020, 01:57:06 pm »
Hi, guys. I debug Lazarus IDE and want to see debug output from debugln()
But I don`t see command.com console, option "-WG" is unchecked.
Where is it disabled?

My OS is windows.
When I do thus on test Application there is ok, I see console and output.


PascalDragon

  • Hero Member
  • *****
  • Posts: 2611
  • Compiler Developer
Re: Debug lazarus IDE Windows
« Reply #1 on: November 06, 2020, 02:22:25 pm »
The Lazarus project is not used for compilation. You need to enable the {off $apptype console} in %lazdir%\ide\include\ide.inc and then rebuild the IDE.

Andrey Sobol

  • New Member
  • *
  • Posts: 41
Re: Debug lazarus IDE Windows
« Reply #2 on: November 06, 2020, 03:47:36 pm »
Thanks

Andrey Sobol

  • New Member
  • *
  • Posts: 41
Re: Debug lazarus IDE Windows
« Reply #3 on: November 08, 2020, 09:12:08 pm »
My goal was to make the environment for debugging on windows ide components to output debug messages to the console as linux.
As was found the console was turned off for windows users a much deeper and forever :)

Into makefile.fpc and makefile for lazarus exists such code

Code: Pascal  [Select][+][-]
  1. # apptype gui
  2. ifneq ($(findstring $(OS_TARGET),win32 win64),)
  3. LAZARUS_OPT+= -WG
  4. BIG_IDE_OPTIONS+= -WG
  5. endif

Now I remade some part of BuildProfileManager and made new profile "IDE Debug + Console"
It's awesome to debugcomponents with the debug log.

I think either to do patch or not for that?

 

TinyPortal © 2005-2018