Is the bdebugger supposed to debug?

Jul 15, 2010
6
0
Is the bdebugger supposed to debug? There's nothing in the Help file about how to actually run it. There's a lot of verbiage about it, but nothing about how to use it.

So, I executed "bdebugger /c" (sans quotes) from a tcc.exe window. The "IDE 11.0" window opened with a curser in the large tabbed panel. I entered a simple script (two “echo” commands and a pause), clicked the “Start” arrow and saved it when prompted to do so. It got saved and ran fine when I executed it from the File Manager.

Then I replaced the script lines with this random garbage text in the large tabbed “IDE 11.0” window with the naïve expectation that it would be detected as such:

asdfghjkl;'
rj5$rf
gtf&h RR5
gfbv#@aXX

After about twenty minutes trying to get the "debugger" to tell me this was buggy code, I gave up and started writing this. Then, I looked at the tcc.exe window where I started the bdebugger. The garbage text had been executed (well, tried to be) with the expected error messages.

It seems to me that the bdebugger only executes the code in the IDE window in the saved BTM file in the tcc.exe window where the bdebugger was started. I can do that now with a script I resurrected from an old Korn-shell script I wrote years ago, and all I have to do is save the script I’m writing and a new tcc.exe window opens and executes the saved script automatically.

A forum question about the debugger from last year had multiple questions, and from that I’ve learned to just ask one question. To wit:

Where in the Help file does it explain how to use the bdebugger for debugging and explain how to use it for such things as the “Step” mode (Cntrl-C)?

George
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
> Is the bdebugger supposed to debug? There's nothing in the Help file
> about how to actually run it. There's a lot of verbiage about it, but
> nothing about how to use it.

The BDEBUGGER / IDE topic in the online help covers all of the debugger
commands.


> So, I executed "bdebugger /c" (sans quotes) from a tcc.exe window.

Not a meaningful command -- the "/c" option means "create this file", but
you didn't provide a name.


> Then I replaced the script lines with this random garbage text in the
> large tabbed “IDE 11.0” window with the naïve expectation that it would
> be detected as such:
>
> asdfghjkl;'
> rj5$rf
> gtf&h RR5
> gfbv#@aXX

The debugger window does not (indeed cannot) execute the batch file itself.
The batch files are executed in the console window attached to the debugger
window. The debugger window merely controls the program flow. All i/o
(including error messages) will appear in the console window.


> After about twenty minutes trying to get the "debugger" to tell me this
> was buggy code, I gave up and started writing this. Then, I looked at
> the tcc.exe window where I started the bdebugger. The garbage text had
> been executed (well, tried to be) with the expected error messages.
>
> It seems to me that the bdebugger only executes the code in the IDE
> window in the saved BTM file in the tcc.exe window where the bdebugger
> was started. I can do that now with a script I resurrected from an old
> Korn-shell script I wrote years ago, and all I have to do is save the
> script I’m writing and a new tcc.exe window opens and executes the
> saved script automatically.

The debugger executes the code (whether single stepping, running to a
breakpoint, or executing the entire file) in a new TCC window.


> Where in the Help file does it explain how to use the bdebugger/IDE for
> debugging and explain how to use it for such things as the “Step” mode
> (Cntrl-C)?

"Step mode" (I presume you mean single stepping) has nothing to do with ^C.
(Where did you get that connection?)

"help bdebugger" documents all of the menu & toolbar commands in the
debugger.

Rex Conn
JP Software
 
Similar threads
Thread starter Title Forum Replies Date
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 and breakpoint Support 5
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
B Bdebugger doesn't recognize breakpoint after batch file returns Support 2
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
vefatica BDEBUGGER and Spy++ Support 2
mikea Using BDEBUGGER (and BREAKPOINT) Support 1
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
H Is "Check for updates" supposed to work in v10? Support 1

Similar threads