Recent

Author Topic: Debugging - component property editor  (Read 3684 times)

dpremus

  • New Member
  • *
  • Posts: 32
Debugging - component property editor
« on: October 31, 2015, 11:46:02 am »
Hello

I have one component that cause exception (Access Violation) when I try to change some property design time. Changing this property run-time works OK.

Now I am trying to debug Lazarus IDE it self.

I was downloaded Lazarus source from SVN and started debugging Lazarus IDE as it explained in this tutorial:
http://wiki.freepascal.org/Extending_the_IDE#Debugging_the_IDE

I am debugging Lazarus from another instance of Lazarus.
Debugger works OK but when I set breakpoint in component source debugger doesn't stop.

For example If I put breakpoint in procedure:

Code: Pascal  [Select][+][-]
  1. (StdCtrls.pas) procedure TCustomButton.TextChanged;

and then make change on button caption from property inspector of running Lazarus instance debugger doesn't stop.

Does anybody have idea what I'm doing wrong?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Debugging - component property editor
« Reply #1 on: October 31, 2015, 02:17:01 pm »
I was downloaded Lazarus source from SVN and started debugging Lazarus IDE as it explained in this tutorial:
http://wiki.freepascal.org/Extending_the_IDE#Debugging_the_IDE

That may be wrong. I have never needed to set Host Application when debugging the IDE. I just run the project lazarus.lpi.
Lazarus must be built with debug info, yes. Best way is to use the "Debug IDE" profile in Configure Build Lazarus dialog.
LCL gets the same build flags as the IDE itself. It should work.

Quote
I am debugging Lazarus from another instance of Lazarus.
Debugger works OK but when I set breakpoint in component source debugger doesn't stop.

What means "Debugger works OK"? Do your breakpoints stop elsewhere in IDE? Do you see the blue dots at the left egde of editor? They indicate that debug info is present.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dpremus

  • New Member
  • *
  • Posts: 32
Re: Debugging - component property editor
« Reply #2 on: October 31, 2015, 07:33:24 pm »
I was downloaded Lazarus source from SVN and started debugging Lazarus IDE as it explained in this tutorial:
http://wiki.freepascal.org/Extending_the_IDE#Debugging_the_IDE

That may be wrong. I have never needed to set Host Application when debugging the IDE. I just run the project lazarus.lpi.
Lazarus must be built with debug info, yes. Best way is to use the "Debug IDE" profile in Configure Build Lazarus dialog.
LCL gets the same build flags as the IDE itself. It should work.


Thank you for your answer.
I was removed run parameters (Host Application) and everything works OK. Now I can debug
Lazarus components.

Quote



Quote
I am debugging Lazarus from another instance of Lazarus.
Debugger works OK but when I set breakpoint in component source debugger doesn't stop.


What means "Debugger works OK"? Do your breakpoints stop elsewhere in IDE? Do you see the blue dots at the left egde of editor? They indicate that debug info is present.


Break points previously worked only in Lazarus.pp not in components source.
Thaks again for your help.

 

TinyPortal © 2005-2018