Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-01

Breakpoints in certain procedure don't get hit.

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ken G. Brown

MacOS X 10.5.6, fpc 2.2.2

In Xcode 3.1.2 I'm having trouble getting breakpoints to get hit in a certain procedure. Breaks in other procedures in the same file work. I can break before entering the procedure but 'step into' just executes the procedure that apparently has breakpoints correctly set but they don't get hit. Tried complete clean and rebuild. Tried changing the procedure name to all caps.

I'm able to normally hit breaks in external C functions called from immediately before and after the procedure in question. C functions were compiled into a library in a separate project, then linked into the pascal project.

I'm running out of ideas. Anyone have some new things to try?

Thx for any tips.

Ken G. Brown

Jonas Maebe
to Ken G. Brown
Ken G. Brown wrote 5 lines
In Xcode 3.1.2 I'm having trouble getting breakpoints to get hit in a certain procedure. Breaks in other procedures in the same file work. I can break before entering the procedure but 'step into' just executes the procedure that apparently has breakpoints correctly set but they don't get hit. Tried complete clean and rebuild.

Try changing the debug info from stabs into dwarf:

In the project settings, under the Build tab, select the Debug configuration, then the "All Settings" collection, filter on "fpc", and add "-gw2" at the end of the FPC_SPECIFIC_OPTIONS settings. This will switch the compiler from stabs to dwarf. Then clean and rebuild.

Jonas

Ken G. Brown

Yay! That seems to have worked.
THANKS!
Ken

apparently wrote 26 lines
Date: Thu, 29 Jan 2009 08:45:31 +0200 From: Jonas Maebe Subject: Re: [fpc-pascal] Breakpoints in certain procedure don't get hit. To: FPC-Pascal users discussions Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On 29 Jan 2009, at 06:47, Ken G. Brown wrote: > In Xcode 3.1.2 I'm having trouble getting breakpoints to get hit in > a certain procedure. Breaks in other procedures in the same file > work. I can break before entering the procedure but 'step into' just > executes the procedure that apparently has breakpoints correctly set > but they don't get hit. Tried complete clean and rebuild. Try changing the debug info from stabs into dwarf: In the project settings, under the Build tab, select the Debug configuration, then the "All Settings" collection, filter on "fpc", and add "-gw2" at the end of the FPC_SPECIFIC_OPTIONS settings. This will switch the compiler from stabs to dwarf. Then clean and rebuild. Jonas