Recent

Author Topic: Debugging - WinXP, Lazarus 1.0.2  (Read 3216 times)

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 747
Debugging - WinXP, Lazarus 1.0.2
« on: February 23, 2013, 05:38:12 pm »
Hello.

I've followed the instructions in the Debugger_Setup wiki (correctly, I think) and can use breakpoints OK.  I can't seem to use "Run to Cursor" though.  I'm trying to convert an old Delphi3 program, so the second line of my main unit (there is only one, and only one form) is "{$mode Delphi}{$H+}"

If I put my cursor on the first statement of my Form.Create procedure and right-click "Run to Cursor", my program simply runs without stopping at the cursor position.

Any ideas about what I may be overlooking in the debugger setup would be appreciated  :(     

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Debugging - WinXP, Lazarus 1.0.2
« Reply #1 on: February 23, 2013, 06:28:52 pm »
I have the same issue, with the message:

"No symbol table is loaded.  Use the \"file\" command."

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12309
  • Debugger - SynEdit - and more
    • wiki
Re: Debugging - WinXP, Lazarus 1.0.2
« Reply #2 on: February 23, 2013, 07:49:56 pm »
"Run to cursor" is misleading. It is "step to cursor within current procedure"

See http://bugs.freepascal.org/view.php?id=21958#c59370


In 1.0.4 and up, run to cursor is disabled, if the app has not yet been started.
« Last Edit: February 23, 2013, 07:51:38 pm by Martin_fr »

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 747
Re: Debugging - WinXP, Lazarus 1.0.2
« Reply #3 on: February 24, 2013, 04:49:38 pm »
Thank you very much for the prompt explanation Martin!  I understand how it works now -- and think I need to go read the docs on GDB  :)

 

TinyPortal © 2005-2018