Sign in Join

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

Mailing lists / lazarus / 2012-11

Source Tab duplication on Linux...

7 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

William Oliveira Ferreira

Hi,

when I'm debugging a application and the debugger reach a break point, it doesn't use the already open source tab, Lazarus opens a new tab of the same file focusing the break point line.

How can I change this behavior?

Screen Shots:
http://imagebin.org/237601
http://imagebin.org/237602

PS.: Sorry about all language errors..

________________________________ William de Oliveira Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121129/aea374cb/attachment.html>

Reply by email

Martin
to William Oliveira Ferreira
William Oliveira Ferreira wrote 14 lines
Hi, when I'm debugging a application and the debugger reach a break point, it doesn't use the already open source tab, Lazarus opens a new tab of the same file focusing the break point line. How can I change this behavior? Screen Shots: http://imagebin.org/237601 http://imagebin.org/237602 PS.: Sorry about all language errors..

Look at the filename (with path) in the statusbar. The location differ.

Maybe it is a link (lazarus does not detect links), maybe you used the other copy of the file.

In any case for lazarus this are 2 diff files.

The reason you can set breakpoint is that setting breakpoints has a fallback to only use the filename, without path.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121130/bf69ee8c/attachment.html>

Reply by email

William Oliveira Ferreira
to Martin

2012/11/29 Martin

Show quoted text 9 lines
Look at the filename (with path) in the statusbar. The location differ. Maybe it is a link (lazarus does not detect links), maybe you used the other copy of the file. In any case for lazarus this are 2 diff files.

I didn't created any copy file on this situation but i neither noticed that the file name differs on the statusbar. Today, I use an extra partition to store my docs and source-codes and I also created some symbolic links that points to these folders inside user's folder to easely to access my files on some situations...

________________________________ William de Oliveira Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121129/d597f2d8/attachment.html>

Reply by email

William Oliveira Ferreira
to William Oliveira Ferreira

Thanks for the hint!

2012/11/29 William Oliveira Ferreira

Show quoted text 24 lines
2012/11/29 Martin > Look at the filename (with path) in the statusbar. > The location differ. > > Maybe it is a link (lazarus does not detect links), maybe you used the > other copy of the file. > > In any case for lazarus this are 2 diff files. > > I didn't created any copy file on this situation but i neither noticed that the file name differs on the statusbar. Today, I use an extra partition to store my docs and source-codes and I also created some symbolic links that points to these folders inside user's folder to easely to access my files on some situations... -- ________________________________ William de Oliveira Ferreira
________________________________ William de Oliveira Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121129/7a7ddd08/attachment.html>

Reply by email

Martin
to William Oliveira Ferreira

You also wont to check the lps (session) file (may be in your main config folder).

Now that it knows both pathes, there may be references. Simpl gcep for the path, you do not ant to open

William Oliveira Ferreira wrote 24 lines
Thanks for the hint! 2012/11/29 William Oliveira Ferreira < <mailto:>> 2012/11/29 Martin < <mailto:>> Look at the filename (with path) in the statusbar. The location differ. Maybe it is a link (lazarus does not detect links), maybe you used the other copy of the file. In any case for lazarus this are 2 diff files. I didn't created any copy file on this situation but i neither noticed that the file name differs on the statusbar. Today, I use an extra partition to store my docs and source-codes and I also created some symbolic links that points to these folders inside user's folder to easely to access my files on some situations...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121130/416bd123/attachment-0001.html>

Reply by email

William Oliveira Ferreira
to Martin

I had already deleted the file LPS trying to solve the problem.

To facilitate, I open the project stored on the original partition.

I will try other ways to create this symbolic link later.

2012/11/30 Martin

Show quoted text 41 lines
You also wont to check the lps (session) file (may be in your main config folder). Now that it knows both pathes, there may be references. Simpl gcep for the path, you do not ant to open On 30/11/2012 01:36, William Oliveira Ferreira wrote: Thanks for the hint! 2012/11/29 William Oliveira Ferreira > > > 2012/11/29 Martin > >> Look at the filename (with path) in the statusbar. >> The location differ. >> >> Maybe it is a link (lazarus does not detect links), maybe you used the >> other copy of the file. >> >> In any case for lazarus this are 2 diff files. >> >> > I didn't created any copy file on this situation but i neither noticed > that the file name differs on the statusbar. Today, I use an extra > partition to store my docs and source-codes and I also created some > symbolic links that points to these folders inside user's folder to easely > to access my files on some situations... > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
________________________________ William de Oliveira Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121130/233cc2b3/attachment.html>

Reply by email

Martin
to William Oliveira Ferreira
William Oliveira Ferreira wrote 6 lines
I had already deleted the file LPS trying to solve the problem. To facilitate, I open the project stored on the original partition. I will try other ways to create this symbolic link later.

Lazarus can get the path from gdb, if fpc stored it in the debug info.

To check, try compilirng with -va (tons of output) and check the result (grep) for the path.

Or run the debugger with logfile
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

and check for the gdb messages, when the breakpoint is hit. Add DBG_LOCATION_INFO to the enable list too

Show quoted text 59 lines
2012/11/30 Martin < <mailto:>> You also wont to check the lps (session) file (may be in your main config folder). Now that it knows both pathes, there may be references. Simpl gcep for the path, you do not ant to open On 30/11/2012 01:36, William Oliveira Ferreira wrote: > Thanks for the hint! > > 2012/11/29 William Oliveira Ferreira < > <mailto:>> > > > > 2012/11/29 Martin < > <mailto:>> > > Look at the filename (with path) in the statusbar. > The location differ. > > Maybe it is a link (lazarus does not detect links), maybe > you used the other copy of the file. > > In any case for lazarus this are 2 diff files. > > > I didn't created any copy file on this situation but i > neither noticed that the file name differs on the statusbar. > Today, I use an extra partition to store my docs and > source-codes and I also created some symbolic links that > points to these folders inside user's folder to easely to > access my files on some situations... > -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ________________________________ William de Oliveira Ferreira -- _______________________________________________ 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/20121130/8135da97/attachment.html>

Reply by email