Bdebugger and breakpoint

Jun 8, 2013
Warsaw, Poland
One more problem.

From docs:
If the batch debugger is active, BREAKPOINT sets a breakpoint on the current line, stopping a "Step Out" sequence.

and the code (xyz.btm)
@echo off
GoSub something

  echo Entering somewhere
  echo Exiting somewhere

Run to breakpoint:
F5, Shift F11.
Breakpoint was not fired. Debugger marked line with breakpoint as "disabled" (white circle, red perimeter).

Step into:
F5, F11 many times. Debugger marked line with breakpoint as "disabled" just entering that line. Why disabled?

Step over (as documented)
F5, F10, F10
Breakpoint was not fired. Debugger didn't marked line with breakpoint.

In all cases output is the same:
Entering somewhere
Exiting somewhere
Breakpoint was not fired.

Let's mark breakpoints with mouse. Click on left margin of lines: "Breakpoint" and the next one. Breakpoints are marked with red dots.

F5, F10, F10 - breakpoints was not fired :(

F5, Shift F11, Shift F11, Shift F11: strange. The first breakpoint was marked as disabled, second one - no change, both breakpoints (disabled and active) are stopping execution of "Run to breakpoint"

Happy new year


Staff member
May 14, 2008
Fixed in build 71.

Note that BREAKPOINT has been obsolete for several years; what broke it was when I added breakpoint conditions (right clicking on the breakpoint column & defining a condition). Apparently you're the only one still using BREAKPOINT? (BREAKPOINT is a holdover from the old 4DOS debugger; it's unnecessary in newer versions because the breakpoints are saved when you edit / debug files.)

Also, there is no such thing as a breakpoint when single-stepping through code, so I'm unsure what you're expecting in that case.
Jun 8, 2013
Warsaw, Poland
Fixed in build 71.
Thanks for the fix.

Note that BREAKPOINT has been obsolete for several years.
If breakpoint has been obsolete - please add the notice in the docs. It changes point of view :)

there is no such thing as a breakpoint when single-stepping through code, so I'm unsure what you're expecting in that case.
I expect: if stepping using F10 (step over), if there is an active breakpoint somewhere inside the statement (inside GoSub, Do etc. ) I'm stepping over it should break.
But: it doesn't matter if obsolete.


Aug 19, 2008
I think I'm having a similar issue. Not using "breakpoint", but having a breakpoint I set inside a gosub fire. The code is being executed but the breakpoint does not fire.

Maybe it's because the breakpoint is inside a 'for' ?

for %x in (""%1"") gosub age


Aug 19, 2008
Thanks for that tip, using DO instead had not occurred to me. Just used FOR out of habit instead of need.
Similar threads
Thread starter Title Forum Replies Date
B Bdebugger doesn't recognize breakpoint after batch file returns Support 2
mikea Using BDEBUGGER (and BREAKPOINT) Support 1
R bug _ypixels in BDEBUGGER Support 6
T Thanks for the assistance with IDE vs Bdebugger Support 3
cgunhouse SETLOCAL not working in BDEBUGGER Support 9
Peter Murschall V26-Issues in the BDEBUGGER ! Support 11
R Documentation Help Nit > bdebugger View Menu Support 0
Peter Murschall BDEBUGGER "Run to Cursor" - where is it ? Support 1
R Changes to BDEBUGGER menu item keyboard shortcuts in v25 Support 2
Kachupp ide/bdebugger Support 17
rps IDE/BDEBUGGER ? Support 1
Kachupp bdebugger Support 5
Kachupp bdebugger Support 17
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
Joe Caverly BDEBUGGER and CMDebug Support 2
Joe Caverly Modified Variables in CMDebug/BDebugger Support 1
C BDEBUGGER/IDE crashing Support 1
C BDEBUGGER queryies Support 5
A bdebugger: why it doesnt go inside the "if" statement ? Support 3
MickeyF BDebugger crashes Support 2
jbanaszczyk bdebugger issues Support 4
cgunhouse Fixed bdebugger with not exist batch file causes a crash Support 2
S BDEBUGGER issue Support 9
samintz Hotkeys for copy/paste do not work in BDEBUGGER Support 4
thedave BDEBUGGER vs not inconsistency Support 15
T bdebugger / ide usage confusion Support 14
S WAD BDEBUGGER command changes window title to "TCC Prompt" Support 4
Frank How to? bdebugger / breakpoints Support 4
Frank watch an array variable in ide/bdebugger Support 2
S WAD Invoking BDEBUGGER changes window title to "TCC Prompt" Support 7
E Ctrl-V does not always work in BDEBUGGER Support 4
S Fixed BDEBUGGER died on invalid watch request Support 4
JohnQSmith IDE / BDEBUGGER Crash Support 0
JohnQSmith IDE / BDEBUGGER Font Support 4
B Bdebugger / IDE editor doesn't display called batch file Support 1
samintz bdebugger issues Support 55
Peter Bratton BDEBUGGER observations Support 4
S BDEBUGGER - minor issue Support 2
O Is the bdebugger supposed to debug? Support 1
vefatica BDEBUGGER and Spy++ Support 2
mikea BDEBUGGER/IDE questions Support 16
Y BDEBUGGER does not launch Support 8
P BDEBUGGER/IDE does not honour VariableExclude Support 2
P bdebugger / ide issues Support 1
Peter Bratton v10 IDE / bdebugger Support 10
B Keys in debug menu not working in bdebugger Support 1
B bdebugger doesn't load btm-file in window Support 1
B Bdebugger displays an error when typing right square bracket Support 2
S BDEBUGGER problem Support 0
vefatica IDE - when breakpoint is on a blank line? Support 3

Similar threads