Author Topic: Debug injected DLL  (Read 2077 times)


  • New Member
  • *
  • Posts: 36
Debug injected DLL
« on: October 10, 2014, 01:06:41 pm »

how can I debug a DLL File (Use Breakpoints ie.)  written in Lazarus that I Inject in another Process. Is that possible with lazarus ?



  • Administrator
  • Hero Member
  • *
  • Posts: 6288
    • wiki
Re: Debug injected DLL
« Reply #1 on: October 10, 2014, 02:30:26 pm »
Never tried that, don't know if it is possible... Do you mean "inject" or "loaded" in the other process?  Depends a lot, if GDB can do it.

If the other process "loads" the dll:
you can always use "Attach" ("Run" menu) to attach to the other process, and if gdb finds the debug info, of the loaded library, then you should be able to debug it.

Or use "run param" for your dll project, and set the other app, as starter app.


  • Newbie
  • Posts: 1
DLL Injection Help Please
« Reply #2 on: June 02, 2019, 02:49:23 am »
Hello I am Kinda new to pascal, I've known how to do simple functions like message boxes but im having a hard time getting into deeper things like dll injection. I read some other fourms on it and tried it but they wouldn't work. if someone can please give me a link to files for lazarus with a button that injects a dll, thank you so much if you do, i've been trying for days now.


TinyPortal © 2005-2018