Recent

Author Topic: 64 bit dll debugging on windows does not work  (Read 988 times)

davet

  • Newbie
  • Posts: 3
64 bit dll debugging on windows does not work
« on: April 28, 2023, 10:42:17 pm »
I created a download and stored it on my company's website.
http://allendatagraph.com/xfer/lazarusdlldebug.zip (note edge will not download.  chrome works)
about 7 mb

as the readme.doc describes:
break points set in dll do not work
some globals are missing from watch

This seems to work ok when compiled on raspberry pi 64 bit

I guess I will have to buy embarcadero if can't find a solution.
Davet

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9874
  • Debugger - SynEdit - and more
    • wiki
Re: 64 bit dll debugging on windows does not work
« Reply #1 on: April 28, 2023, 10:45:24 pm »
Wich version of Lazarus?
I know it does not work under 2.2.6.

I just tested with 2.3 => works (99%-ish)

- breakpoint work in library and project
- When in the library, vars from the lib work

However, when in the lib, vars (even globals) from the project don't show in watches.
And vice versa.

Also The library does not show blue dots yet. Mainly a visual issue, but also if you edit the library while debugging, the editor want keep track where the original lines are.



In 2.2.6 you can try and use the gdb based debugger.

Might work, kinda... (not tested in a while)
« Last Edit: April 28, 2023, 10:54:04 pm by Martin_fr »

davet

  • Newbie
  • Posts: 3
Re: 64 bit dll debugging on windows does not work
« Reply #2 on: May 01, 2023, 04:55:02 pm »
information you asked for is in the downloaded file.
downloaded latest version.  It does not work at all.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9874
  • Debugger - SynEdit - and more
    • wiki
Re: 64 bit dll debugging on windows does not work
« Reply #3 on: May 01, 2023, 05:40:35 pm »
information you asked for is in the downloaded file.
downloaded latest version.  It does not work at all.

Latest released version is 2.2.6 => Yes, does NOT work.

Next release (maybe summer 2023) will be 2.4 => Will work

Lazarus 2.3 works too. But only available from GIT (Gitlab).
Or use "FpcUpDeluxe", and select "trunk" or "2.3"




Witch current Lazarus 2.2.6
Go to MENU:  Tools > Options > Debugger > Debugger Backend
Select "GNU Debugger (GDB)"
works.

davet

  • Newbie
  • Posts: 3
Re: 64 bit dll debugging on windows does not work
« Reply #4 on: May 02, 2023, 04:19:26 pm »
installed 2.3 lazarus and was able to set a breakpoint and see variables while in dll

 

TinyPortal © 2005-2018