Recent

Author Topic: [SOLVED / IGNORE] Debugger problem  (Read 2675 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 935
[SOLVED / IGNORE] Debugger problem
« on: December 18, 2021, 10:11:44 am »
Why won't the simple attached project debug?
« Last Edit: December 18, 2021, 11:16:51 am by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

WooBean

  • Full Member
  • ***
  • Posts: 130
Re: Debugger problem
« Reply #1 on: December 18, 2021, 10:55:56 am »
At least for Lazarus 2.0.8/ FPC 3.0.4/ win 64/ integrated debugger/ optimization -O1 there is no debug issues. All seems to be OK.

WooBean 
Win7/64, Lazarus 2.2.0, FPC 3.2.2, x86_64-win64-win32/win64

pcurtis

  • Hero Member
  • *****
  • Posts: 935
Re: Debugger problem
« Reply #2 on: December 18, 2021, 11:04:42 am »
Does the program stop on the line  ReturnFactor := OriginalHeight / Height;, line 67 myform.pas?
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

dseligo

  • Hero Member
  • *****
  • Posts: 578
Re: Debugger problem
« Reply #3 on: December 18, 2021, 11:06:47 am »
Does the program stop on the line  ReturnFactor := OriginalHeight / Height;, line 67 myform.pas?

I don't see where you call DoScaleBy method. It can't stop if it is never executed.

wp

  • Hero Member
  • *****
  • Posts: 9571
Re: Debugger problem
« Reply #4 on: December 18, 2021, 11:11:10 am »
For me, debugging is working (Laz main). Using your project settings; my debugger is set up to be "FpDebug (internal Dwarf debugger)".

A comment to this project: You seem to implement your own scaling routines. In this case you should turn off LCLScaling in the project options; otherwise the two scaling methods might be working against each other.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

WooBean

  • Full Member
  • ***
  • Posts: 130
Re: Debugger problem
« Reply #5 on: December 18, 2021, 11:11:45 am »
Zipped project does not have any myform.pas module, only unit1.pas exists!
Unit1 does not have such line:
Code: Pascal  [Select][+][-]
  1. ReturnFactor := OriginalHeight / Height;
  2.  
Win7/64, Lazarus 2.2.0, FPC 3.2.2, x86_64-win64-win32/win64

dseligo

  • Hero Member
  • *****
  • Posts: 578
Re: Debugger problem
« Reply #6 on: December 18, 2021, 11:13:39 am »
Zipped project does not have any myform.pas module, only unit1.pas exists!

File myform.pas is in zipped project, but he didn't put it in Project Inspector.

pcurtis

  • Hero Member
  • *****
  • Posts: 935
Re: Debugger problem
« Reply #7 on: December 18, 2021, 11:15:57 am »
Sorry to all. My brain is malfunctioning.
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

 

TinyPortal © 2005-2018