Testing/Debugging by Running to Cursor and F7 - Stepping Thru ... lazarus / 21-General ---------------------------------------------------------------------- 1HuntnMan · 2023-10-30 21:42 I love this feature if I could turn off stepping thru all the components also.  Is there a setting to turn off stepping thru the Lazarus components code and just step thru just my code? ---------------------------------------------------------------------- dsiders · 2023-10-30 22:36 Quote from: 1HuntnMan on October 30, 2023, 10:42:24 pmI love this feature if I could turn off stepping thru all the components also.  Is there a setting to turn off stepping thru the Lazarus components code and just step thru just my code? You can use the other options on the Run menu. Run to Cursor (no default hot key). Step Over (F8), or Step Out (Shift+F8). ---------------------------------------------------------------------- wp · 2023-10-30 22:46 Quote from: 1HuntnMan on October 30, 2023, 10:42:24 pmIs there a setting to turn off stepping thru the Lazarus components code and just step thru just my code? Normally this is off by default... You probably have an IDE which was compiled with debug information. Go to "Tools" > "Configure Lazarus", in the "Profile to build" combobox you probably have "IDE with debugger information" - switch this to "Normal IDE". In the "Clean-up" box check"Clean all" and "Switch after building to automatically". Then click "Build". After a while the IDE restarts and the debugger should only enter the code of your own units. ---------------------------------------------------------------------- Martin_fr · 2023-10-30 23:02 There are F7 Step in => step into subroutine Will step into components, but you can recompile components WITHOUT debug info (and only have debug info in your app) and then it will only step in your app. F8 Step over => does not step in. So does not step into components. If you are on "Label1.Text :+ 'abc';" then just do F8 / Step over. And if you are an "MyCode(foo);" then use F7 to Step in. Only a problem if you are an "Label1.Text := MyCode(foo);". There are "Step over to Cursor" and "Run to Cursor" => you likely want the latter. You can adjust the keyboard assignment if needed. As for excepting individual methods from being stepped in (even if they have debug info), that is on the list of ideas. But unfortunately not likely to be soon.