Recent

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

pcurtis

  • Hero Member
  • *****
  • Posts: 951
[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: 230
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 
Platforms: Win7/64, Linux Mint Ulyssa/64

pcurtis

  • Hero Member
  • *****
  • Posts: 951
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: 1221
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: 11916
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.

WooBean

  • Full Member
  • ***
  • Posts: 230
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.  
Platforms: Win7/64, Linux Mint Ulyssa/64

dseligo

  • Hero Member
  • *****
  • Posts: 1221
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: 951
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