Recent

Author Topic: [Solved] trun off IDE auto open tabs  (Read 5223 times)

What I can do

  • Full Member
  • ***
  • Posts: 193
[Solved] trun off IDE auto open tabs
« on: August 23, 2025, 03:00:47 pm »
FPC 3.2.2
Lazarus 4.0
IDE adds new tabs.
I don't really know how to even ask this, but here is what I deal with when I have a project  I have four major support units that I make adjustment to. So when I F8 step thought my code once in a while it goes deep and opens all other links. Nice info but now I have to close all those other window and still never got back to where I was in my code. Is there a way to turn off open everything and just leave the IDE as I set it. 
I did a search with "turn off" and after reading through 162 page i just need help
« Last Edit: August 24, 2025, 12:37:18 am by What I can do »

jamie

  • Hero Member
  • *****
  • Posts: 7602
Re: trun off tabs
« Reply #1 on: August 23, 2025, 03:29:02 pm »
use F7 then. that does not jump into the code deeper.

The only true wisdom is knowing you know nothing

wp

  • Hero Member
  • *****
  • Posts: 13422
Re: trun off tabs
« Reply #2 on: August 23, 2025, 03:34:02 pm »
FPC 3.2.2
Lazarus 4.0
IDE adds new tabs.
I don't really know how to even ask this, but here is what I deal with when I have a project  I have four major support units that I make adjustment to. So when I F8 step thought my code once in a while it goes deep and opens all other links. Nice info but now I have to close all those other window and still never got back to where I was in my code. Is there a way to turn off open everything and just leave the IDE as I set it. 
I did a search with "turn off" and after reading through 162 page i just need help
I installed the "packagetabs" package ("Install" > "Install/Uninstall packages" > select "packagetabs" in the right list > click "Install selection", then "Rebuild IDE"). If you move the tabs to the left ("Tools" > "Options" > "Editor" > "Pages and Windows" > "Notebook Tabs" > "Source Notebook Tabs Position") there is much more space for tabs since the tab height is rather small. And I like that the tabs are grouped by packages to which their unit belongs, and there is scrollbar when the tab list is too long for the height of the editor form.

But if you still want to remove all tabs there is a "Close all" command in the context of the editor tabs.

What I can do

  • Full Member
  • ***
  • Posts: 193
Re: trun off tabs
« Reply #3 on: August 23, 2025, 03:45:48 pm »
ok it feels like the basic answer is, no I can not turn off the auto open new tabs while stepping through my code.
wp offers seams to add options that look cool, but I don't want to see them I don't want them to even pop open
jamie when i did the test with F7 in my situation it went way deeper into other source code.

When I first used Lazarus I treated it like Delphi and not did notice that my code in the current view was not my code but a Lazarus unit and I deleted a huge section and had to reinstall Lazarus to fix it. So I tip toe around the IDE now, and constantly close tabs.

jamie

  • Hero Member
  • *****
  • Posts: 7602
Re: trun off tabs
« Reply #4 on: August 23, 2025, 04:32:30 pm »
You can put multiple break points in the code and when you get to a section you want to skip to the next break point you hit the F9, that will then execute all code between until the next break point without stopping.

Jamie
The only true wisdom is knowing you know nothing

wp

  • Hero Member
  • *****
  • Posts: 13422
Re: trun off tabs
« Reply #5 on: August 23, 2025, 04:50:19 pm »
So when I F8 step thought my code once in a while it goes deep and opens all other links.
When this happens (i.e. when you open more and more units which do not directly belong to you project) you probably have compiled Lazarus and FPC with debug information enabled. Normally both products are installed with debug information turned off. Rebuild both without the debugging "-g*" options (no -gw3 -gl -gh -gt, etc).

My FPC usually is without debug information (I do have in installation with debugging enabled, though). Lazarus is without debugging also. When I want to dive into the LCL or third-party units I add the option "-gw3" in "Addititions and overrides"; when I don't need it any more I disable or delete this option again. This option affects only the currently active project.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: trun off tabs
« Reply #6 on: August 23, 2025, 05:04:13 pm »
use F7 then. that does not jump into the code deeper.

You mean F8 => "Step over"



Or compile the rest of the IDE without debug info.

In menu: Tools > Configure Build Lazarus
remove any -g -gw -gs -gl ....

In packages like LCL, in their options disable debug info.



Right click (context menu) the tab, and "close all pages to the right" => assuming all the new one are on the right end of the list of tabs

What I can do

  • Full Member
  • ***
  • Posts: 193
Re: trun off tabs
« Reply #7 on: August 23, 2025, 05:21:33 pm »
Hey Martin_fr
here is what I found at that menu section
"
[Configure "Build Lazarus"]
[Build] [information]
|      |
Profile to build (Normal IDE)
LCL widget type       Target OS      Target CPU:
 (win32/win64)        (      )       (     )
Options:
(    )
Target Directory
(    )
Defines:                Dlean up:         
(    )                  (*) Automatically
                        ( ) Cean all
                        [ ] Switch after building to automatically
[Edit Define]     [X] Restart after building IDE  [X]Confirem before build   [X] Update revision.inc
empty


help                        build Build Many [Save Setting] [Cancel]
"
I did not see any such switch here
lots of stuff inside [Project]  > Project Options

What I can do

  • Full Member
  • ***
  • Posts: 193
Re: trun off tabs
« Reply #8 on: August 23, 2025, 05:23:58 pm »
"You can put multiple break points "
yes, Jammie
I also use DPoints with break points like everywhere

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: trun off tabs
« Reply #9 on: August 23, 2025, 05:24:55 pm »
I did not see any such switch here
lots of stuff inside [Project]  > Project Options

If "Custom Options" is empty, then that is fine, no change needed.

Then just open packages such as "LCL", "LCL Base" ... and on each go to options, then the debugging page, and turn of "generate info for debugger...".

Then the debugger should no longer go into any file of each of those packages.


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: trun off tabs
« Reply #10 on: August 23, 2025, 05:27:12 pm »
You can put multiple break points in the code and when you get to a section you want to skip to the next break point you hit the F9, that will then execute all code between until the next break point without stopping.

Jamie

There also is a "run to cursor"

Attention:

1) Use "run to cursor"
Do not use "step to cursor"

2) Make sure that the line to which you want to run (the line with the cursor) has a "blue dot" in the gutter (the area on the left side of the editor).
The debugger can only go to lines with a blue dot.


What I can do

  • Full Member
  • ***
  • Posts: 193
Re: trun off tabs
« Reply #11 on: August 23, 2025, 05:28:56 pm »
Martin
"Then just open packages such as "LCL", "LCL Base""
could I compile with Shit+Ctrl+F9 when i don't want Debug and then Shift+F9 when I do

What I can do

  • Full Member
  • ***
  • Posts: 193
Re: trun off tabs
« Reply #12 on: August 23, 2025, 05:39:53 pm »
 "close all pages to the right" =>
i have done this but I think the ide track the tabs in some sort of loop because it add at different places each time sometime at the beginning or in the meddle and sometimes on the right. They are never in the same spot twice 

What I can do

  • Full Member
  • ***
  • Posts: 193
Re: trun off tabs
« Reply #13 on: August 23, 2025, 05:54:57 pm »
I have a DPoint on my KeyPreview where I capture the F1 key; but when I step through with F8 it open winscontrol.inc and takes off from there. This doesn't happen much and seamed to be with my code access form calls and such causing that normal jump to the next line to go somewhere else and I don't have any pause in those codes.

jamie

  • Hero Member
  • *****
  • Posts: 7602
Re: trun off tabs
« Reply #14 on: August 23, 2025, 07:24:43 pm »
Is it possible your code is generating a fault that happens within the WinControl.Inc file? If so, the debugger is most likely jumping there.

 Just an assumption.

Jamie

The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018