bdebugger issues

#1
Dear sirs.

[TCC 17.00.70 x64 Windows 7 [Version 6.1.7601]]

Some issues with bdebugger:

1. Watches.
Please take actions:
bdebugger BatchFile.btm

Issue 1a: How to add not defined (yet) variable to watch list?

in "Watch List" press right mouse key - popup with existing variables appears.
Select any one.
Issue 1b: value of variable is not shown yet. It is updated after any action (start debugging, step).

2. Start/stop
Use the simplest.bat:
Code:
echo off
bdebugger simplest.bat
Press F5 - "Start debugging"
Press Shift-F5 ""Stop debugging" - everything ok
Perform the same from menu:
Menu :: Debug :: Start
Menu :: Debug :: Stop Debugging
Issue 2: debugger fails (exits with error)

3. Save *untitled batch
Start bdebugger without batch name.
Empty batch appears
Modify it. For example: simply press enter key
Start debugging
bdebugger proposes to save the file. Ok
It suggest name "*Untitled".
Issue 3a: can I suggest to remove star sign leading that name?

Issue 3b: can I suggest to add any extension (.bat or .btm)?

Issue 3c: can I suggest to add extensions in dialog box (save as file type)?


Best regards
 

rconn

Administrator
Staff member
May 14, 2008
10,555
97
#2
]

Issue 1a: How to add not defined (yet) variable to watch list?
Double click in an empty "Name" column and enter the nonexistent variable name.

in "Watch List" press right mouse key - popup with existing variables appears.
Select any one.
Issue 1b: value of variable is not shown yet. It is updated after any action (start debugging, step).
WAD. The TCC instance isn't created until you start debugging, so the variable doesn't exist and there's nothing to show.
 

rconn

Administrator
Staff member
May 14, 2008
10,555
97
#3
3. Save *untitled batch
Start bdebugger without batch name.
Empty batch appears
Modify it. For example: simply press enter key
Start debugging
bdebugger proposes to save the file. Ok
It suggest name "*Untitled".
Issue 3a: can I suggest to remove star sign leading that name?


The * isn't in the name; it means that you have unsaved changes in the file.

What's happening here is that the document name is empty (not "Untitled"), so in the save as dialog Windows queries the title and uses that as a suggestion. None of that code is mine, so there's not much I can do about it. And since you wouldn't want to name anything "Untitled" anyway, and since the name is selected and will be replaced as soon as you type any character, I don't really see it as much of an issue.

Issue 3b: can I suggest to add any extension (.bat or .btm)?

I don't know what you're asking for.

Issue 3c: can I suggest to add extensions in dialog box (save as file type)?
File type isn't an extension, it's a file format. Since bat / btm / cmd files are all text format, there doesn't seem to be any reason to add them to the file type combo box.
 

rconn

Administrator
Staff member
May 14, 2008
10,555
97
#4
2. Start/stop
Perform the same from menu:
Menu :: Debug :: Start
Menu :: Debug :: Stop Debugging
Issue 2: debugger fails (exits with error)
There are three ways to start & stop debugging -- the keyboard shortcuts, the toolbar, and the Debug menu. The IDE calls the same routine for all of them, and the only one that fails is stopping debugging from the menu.

The code on our side hasn't changed since v16; however stopping the debugger via the Debug menu option now fails in v17 because the exception handlers have been mangled. This is an RTL bug (v17 uses a new RTL), and I've passed it on to Microsoft. Since it's unlikely I'll get a speedy fix, I'm trying to come up with a workaround that doesn't require rewriting the RTL.
 
#5
The * isn't in the name; it means that you have unsaved changes in the file.

What's happening here is that the document name is empty (not "Untitled"), so in the save as dialog Windows queries the title and uses that as a suggestion. None of that code is mine, so there's not much I can do about it. And since you wouldn't want to name anything "Untitled" anyway, and since the name is selected and will be replaced as soon as you type any character, I don't really see it as much of an issue.
Issue 3b: can I suggest to add any extension (.bat or .btm)?
I don't know what you're asking for.
For sure it is very minor case :)
It is easy to guess where asterisk comes from.
My idea was: to get proposed file name for save as name ready to use - just click save and voila. Good for quick prototyping.