Sign in Join

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

Mailing lists / lazarus / 2012-03

Debug inside other component in other package like SynEdit

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Martin
to Zaher Dirkey
Zaher Dirkey wrote 9 lines
Hi, I can't stepinto or show the source from call stack window referenced to SynEdit component, i think same to another components, what i missed to do that? Thanks in advance I am using last reversion of Lazarus, FPC 2.6

Recompile that package with debug info.

If you need many packages, and all of them have a common required package (most packages require FCL), then open that common required package. go to options, and in the section "Usage" "add options to dependant package) add the debug info switches (or add $(IDEBuildOptions) )

Reply by email

Zaher Dirkey
to Martin
Martin wrote
Recompile that package with debug info.

SynEdit already have debug info and i compiled with clean. SynEdit package -> Options -> Linking -> Generate debugging info.... Look the at post attachments

If you need many packages, and all of them have a common required package

(most packages require FCL), then open that common required package. go to options, and in the section "Usage" "add options to dependant package) add the debug info switches (or add $(IDEBuildOptions) )

Not sure, but that add the debug info to my project? maybe i am not understand yet.

Thanks

I am using last reversion of Lazarus, FPC 2.6

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120304/e6a2295b/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: synedit_debuginfo.png
Type: image/png
Size: 14735 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120304/e6a2295b/attachment.png>

Reply by email

Martin
to Zaher Dirkey
Zaher Dirkey wrote 9 lines
On Sat, Mar 3, 2012 at 9:33 PM, Martin < <mailto:>> wrote: Recompile that package with debug info. SynEdit already have debug info and i compiled with clean. SynEdit package -> Options -> Linking -> Generate debugging info.... Look the at post attachments

Then that is strange.

Did you try to rebuild synedit clean ("more" button in package window)? (If SynEdit is used in a project, then you need only rebuild the package, no need to rebuild the IDE / no harm either)

And (silly question, but to be sure) your project uses debug info too? (and is set to "automatic" too? / though probably mixing stabs/dwarf would work)

Once running, in your code, you will see the blue dots in the gutter? Opening SynEdit, does it have them too?

Attach the "Debug output" window's content please. Important:
- either reset the debugger first, or use a freshly started IDE
- first open the "debug output" window, then after that run your app

before running your app make sure:
- you have a unit of your own code open
- using a 2nd editor window: you also have a synedit window open look for blue dots)
- in both sources, have one breakpoint set

Show quoted text 25 lines
>If you need many packages, and all of them have a common required package (most packages require FCL), then open that common required package. go to options, and in the section "Usage" "add options to dependant package) add the debug info switches (or add $(IDEBuildOptions) ) Not sure, but that add the debug info to my project? maybe i am not understand yet. Thanks I am using last reversion of Lazarus, FPC 2.6 Best Regards Zaher Dirkey -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120304/1377ffc9/attachment.html>

Reply by email

Zaher Dirkey
to Martin

2012/3/4 Martin

Show quoted text 16 lines
On 04/03/2012 11:38, Zaher Dirkey wrote: On Sat, Mar 3, 2012 at 9:33 PM, Martin wrote: > Recompile that package with debug info. SynEdit already have debug info and i compiled with clean. SynEdit package -> Options -> Linking -> Generate debugging info.... Look the at post attachments Then that is strange. Did you try to rebuild synedit clean ("more" button in package window)?

Yes.

(If SynEdit is used in a project, then you need only rebuild the package, no need to rebuild the IDE / no harm either)

Yes, I built it with clean from "more" button.

And (silly question, but to be sure) your project uses debug info too? (and is set to "automatic" too? / though probably mixing stabs/dwarf would work)

Ah, it is work now, it is set to dwarf i changed it to Automatic and work fine :D

Thanks for your time

Now i need to debug inside FPC units like "Classes" is that related to FPC list?

Once running, in your code, you will see the blue dots in the gutter? Opening SynEdit, does it have them too?
Show quoted text 11 lines
Attach the "Debug output" window's content please. Important: - either reset the debugger first, or use a freshly started IDE - first open the "debug output" window, then after that run your app before running your app make sure: - you have a unit of your own code open - using a 2nd editor window: you also have a synedit window open look for blue dots) - in both sources, have one breakpoint set

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120304/44f14d9c/attachment.html>

Reply by email

Martin
to Zaher Dirkey
Zaher Dirkey wrote
Now i need to debug inside FPC units like "Classes" is that related to FPC list?

You need to rebuild the relevant parts of fpc, easier: all of it. What platform ?

You might want to install to a diff directory, since for debugging you would better limit to -O1

on windows I use
- first is the svn checkout of the svn bin, current install might work too
- path MUST have at least one ;

PATH=C:\FPC\SVN\trunk_build;
SET FPC=c:\FPC\SVN\ppc386_2_6_0.exe
make.exe clean distclean
make.exe all OPT="-g -O1 "
make.exe install INSTALL_PREFIX=c:\FPC\trunk COPYTREE=echo UPXPROG=echo

Reply by email

Bernd
to Zaher Dirkey: I can't stepinto or show the source from call stack window referenced to SynEdit…

2012/3/3 Zaher Dirkey :

Show quoted text 5 lines
Hi, I can't stepinto or show the source from call stack window referenced to SynEdit component, i think same to another components, what i missed to do that?

Just change the options in the "build lazarus" settings dialog. You don't need to recompile Lazarus at this point, just change the settings (add -g to the command line) and then compile your project again. When compiling your project it will notice that the settings for Lazarus have changed and will recompile only those components that are used by your project with the new Lazarus settings. The settings of your own project don't have any influence on it.

Reply by email