|
John, Yes indeed you can set fixed fonts. Ugly as they may be,
they are the only sure way to get proper column alignment. I am
enclosing the V7.1 VMSDEBUG.DAT below. This is fairly well commented
and includes sections for fonts and colors. There are a few other
things that are not backwards compatible with earlier versions, but
they should not cause any insurmountable problems, rather, they
simply wont do anything at all...
I suggest you cut and paste the parts you are interested in to your
existing file. If you choose to go the other way, be sure to paste
your correct version statement into this file to avoid startup
version warnings. Note finally, that Motif does a wonderful job
of removing all sensible order and comments from the resource file
when you save your settings, so you may want to keep an extra copy
somewhere safe.
Happy debuggin' Gary Newsted - Debug Team
! OpenVMS Debug 32/64-bit Resource File
!
DebugVersion: 71
!
! GEOMETRY RESOURCES:
!
! Written when you execute "SAVE OPTIONS" from the Options Menu.
!
DebugSource.x: 11
DebugSource.y: 30
DebugSource.width: 620
DebugSource.height: 700
!
DebugControl.x: 650
DebugControl.y: 30
DebugControl.width: 600
DebugControl.height: 700
!
DebugEditor.x: 650
DebugEditor.y: 30
DebugEditor.width: 600
DebugEditor.height: 700
!
DebugInstruction.x: 11
DebugInstruction.y: 769
DebugInstruction.width: 620
DebugInstruction.height: 243
!
*DebugBrowser.x: 650
*DebugBrowser.y: 30
*DebugBrowser.width: 335
*DebugBrowser.height: 300
!
! LINE NUMBER DISPLAY RESOURCES:
!
! Create the line or address number display in views at startup?
!
DebugSource.StartupShowSourceLineno: True
DebugInstruction.StartupShowInstLineno: True
DebugInstruction.StartupShowInstAddrno: True
!
! WINDOW PANE RESOURCES:
!
! Relative size of panes in main window.
! Main window height is derived from sum of panes.
!
DebugSource*SrcView.height: 460
DebugSource*PushbuttonPanel.height: 36
DebugSource*MessageOutputPanel.height: 145
!
DebugControl.BreakpointView.height: 175
DebugControl.MonitorView.height: 150
DebugControl.TaskView.height: 130
DebugControl.RegisterView.height: 250
!
! CUSTOM BUTTON RESOURCES:
!
! The following resources determine which buttons to put in the button panel.
! Buttons will show in the order they are listed here.
! For each button there MUST be a set of associated resources.
! EXAMPLE:
! ButtonCommand - Associates a command with the button.
! ButtonLegend - Button Label or pixmap name if pixmap flag is True.
! ButtonPixmapFlag - If True uses ButtonLegend as predefined pixmap name.
!
DebugControl.ButtonList: \ GoButton, StepButton, StepInButton, StepReturnButton,
StepCallButton, ExamineButton, ExamineASCIZButton, ExamineASCICButton,
EvalButton, MonitorButton
!
DebugControl.ButtonCommand.GoButton: go
DebugControl.ButtonLegend.GoButton: go_pixmap
DebugControl.ButtonPixmapFlag.GoButton: True
!
DebugControl.ButtonCommand.StepButton: step
DebugControl.ButtonLegend.StepButton: STEP
DebugControl.ButtonPixmapFlag.StepButton: False
!
DebugControl.ButtonCommand.StepInButton: step/in
DebugControl.ButtonLegend.StepInButton: S/in
DebugControl.ButtonPixmapFlag.StepInButton: False
!
DebugControl.ButtonCommand.StepReturnButton: step/return
DebugControl.ButtonLegend.StepReturnButton: S/ret
DebugControl.ButtonPixmapFlag.StepReturnButton: False
!
DebugControl.ButtonCommand.StepCallButton: step/call
DebugControl.ButtonLegend.StepCallButton: S/call
DebugControl.ButtonPixmapFlag.StepCallButton: False
!
DebugControl.ButtonCommand.ExamineButton: examine %s
DebugControl.ButtonLegend.ExamineButton: EX
DebugControl.ButtonPixmapFlag.ExamineButton: False
!
DebugControl.ButtonCommand.ExamineASCIZButton: examine/asciz %s
DebugControl.ButtonLegend.ExamineASCIZButton: E/az
DebugControl.ButtonPixmapFlag.ExamineASCIZButton: False
!
DebugControl.ButtonCommand.ExamineASCICButton: examine/ascic %s
DebugControl.ButtonLegend.ExamineASCICButton: E/ac
DebugControl.ButtonPixmapFlag.ExamineASCICButton: False
!
DebugControl.ButtonCommand.EvalButton: evaluate %s
DebugControl.ButtonLegend.EvalButton: EVAL
DebugControl.ButtonPixmapFlag.EvalButton: False
!
DebugControl.ButtonCommand.MonitorButton: monitor %s
DebugControl.ButtonLegend.MonitorButton: MON
DebugControl.ButtonPixmapFlag.MonitorButton: False
!
! THE FOLLOWING RESOURCES CAN ONLY BE CHANGED BY EDITING THIS FILE.
! -----------------------------------------------------------------
! Be sure to trim any trailing white-spaces.
!
! FONT RESOURCES:
!
! If a font is specified for a view, and the font is available on the
! system, it will be used for that view.
!
! For any views which do not explicitly specify a font, the font specified
! by the resource "DebugDefault.Font" will be used if it is available on the
! system.
!
! If no font resources are specified at all, the debugger will use the
! systems own default font specification.
!
! The "DebugOptions.Font" applies to all optional views. We suggest that
! you select a font with a point size no larger than 14 in the option views
! in order to preserve label alignment.
!
! Using 132 column sources? Try this font:
! -dec-terminal-medium-r-narrow--14-100-100-100-c-60-iso8859-1
!
! FORMAT: -*-FONTNAM-FACE-T-*--*-PTS-*-*-*-*-CHARSET
!
DebugDefault.Font: -*-COURIER-BOLD-R-*--*-120-*-*-*-*-ISO8859-1
DebugSource.Font: -*-COURIER-BOLD-R-*--*-120-*-*-*-*-ISO8859-1
DebugInstruction.Font: -*-COURIER-BOLD-R-*--*-140-*-*-*-*-ISO8859-1
DebugMessage.Font: -*-COURIER-BOLD-R-*--*-120-*-*-*-*-ISO8859-1
DebugOptions.Font: -*-COURIER-BOLD-R-*--*-120-*-*-*-*-ISO8859-1
!
! STARTUP STATE: 3=Iconified, 0=Visible
!
DebugSource.initialState: 0
DebugControl.initialState: 0
DebugEditor.initialState: 0
DebugInstruction.initialState: 0
!
! COLOR RESOURCES:
!
! Use any of the OSF Motif Named Colors.
!
! Foreground = Text Color, Background = Window Color
!
! Try: Gainsboro, MintCream, Linen, SeaShell, MistyRose, Honeydew
! Cornsilk, Lavender
!
! To use your system default color scheme, comment out all lines
! pertaining to color.
!
! For users who prefer the "Stealth" look, a mostly-black color
! scheme is included below the default color definitions. Just
! comment out the defaults and uncomment the stealthy alternatives.
!
! DEFAULT COLOR SCHEME
!
! Common colors (unless overridden for a specific view)
!
*background: Gainsboro
*foreground: Black
*borderColor: Red
!*topShadowColor: WindowTopshadow
!*bottomShadowColor: WindowBottomshadow
!
! Source View Colors
!
!DebugSource*background: Gainsboro
!DebugSource*foreground: Black
DebugSource*src_txt.foreground: Blue
DebugSource*src_txt.background: White
DebugSource*src_lineno_txtw.foreground: Red
DebugSource*src_lineno_txtw.background: Gainsboro
DebugSource*cnt_msg_txt.foreground: Black
DebugSource*cnt_msg_txt.background: White
!
! Control View Colors
!
!DebugControl*background: Gainsboro
!DebugControl*foreground: Black
!
! Instruction View Colors
!
!DebugInstruction*background: Gainsboro
!DebugInstruction*foreground: Black
DebugInstruction*inst_txt.background: White
DebugInstruction*inst_txt.foreground: Blue
DebugInstruction*inst_addrno_txtw.foreground: Red
DebugInstruction*inst_addrno_txtw.background: Gainsboro
!
! Editor Colors
!
!DebugEditor*background: Gainsboro
!DebugEditor*foreground: Black
DebugEditor*edit_textw.background: White
DebugEditor*edit_textw.foreground: Black
!
! "STEALTH" COLOR SCHEME (White on black with red highlights)
!
! Common colors (unless overridden for a specific view)
!
!*background: Black
!*foreground: White
!*borderColor: Red
!*topShadowColor: Gray60
!*bottomShadowColor: Gray40
!
! Source View Colors
!
!DebugSource*background: Black
!DebugSource*foreground: White
!DebugSource*src_txt.foreground: White
!DebugSource*src_txt.background: Black
!DebugSource*src_lineno_txtw.foreground: Red
!DebugSource*src_lineno_txtw.background: Black
!DebugSource*cnt_msg_txt.foreground: White
!DebugSource*cnt_msg_txt.background: Black
!
! Control View Colors
!
!DebugControl*background: Black
!DebugControl*foreground: White
!
! Instruction View Colors
!
!DebugInstruction*background: Black
!DebugInstruction*foreground: White
!DebugInstruction*inst_txt.background: Black
!DebugInstruction*inst_txt.foreground: White
!DebugInstruction*inst_addrno_txtw.foreground: Red
!DebugInstruction*inst_addrno_txtw.background: Black
!
! Editor Colors
!
!DebugEditor*background: Black
!DebugEditor*foreground: White
!DebugEditor*edit_textw.background: Black
!DebugEditor*edit_textw.foreground: White
!
! REGISTER VIEW RESOURCES:
!
! Which Registers to display by default in the Register View?
! CF = Call Frame, GP = General Purpose, FP = Floating Point (Alpha Only)
!
*Show_CF_Registers.set: True
*Show_GP_Registers.set: False
*Show_FP_Registers.set: False
!
! SHOW MESSAGE/COMMAND SEPARATOR LINES?
!
*Show_Message_Separators.set: False
!
! TRACK LANGUAGE CHANGES? (parser follows module language)
!
*Track_Language_Changes.set: False
!
! KEY SEQUENCES:
!
! Key sequence used to activate the dialog box for conditional and action
! breakpoints.
!
DebugSource.ModifyBreakpointToggleSequence: Ctrl <Btn1Down>, Ctrl <Btn1Up>
!
! GENERAL KEYPAD FUNCTIONS:
!
!<Key>0xFFB0=KP0, <Key>0xFF91,<Key>0xFFB0=GOLD-KP0,
!<Key>0xFF94,<Key>0xFFB0=BLUE-KP0, <Key>0xFFB1=KP1,
!<Key>0xFF91,<Key>0xFFB1=GOLD-KP1, <Key>0xFFAC=KP,
DebugSource.*XmText.translations:#override\n\
<Key>0xFFB0: EnterCmdOnCmdLine("step/line") \n\
<Key>0xFFB1: EnterCmdOnCmdLine("examine") \n\
<Key>0xFFAC: EnterCmdOnCmdLine("go") \n\
<Key>0xFF91,<Key>0xFFB0: EnterCmdOnCmdLine("step/into") \n\
<Key>0xFF94,<Key>0xFFB0: EnterCmdOnCmdLine("step/over") \n\
<Key>0xFF91,<Key>0xFFB1: EnterCmdOnCmdLine("examine^") \n\
<Key>0xFFB5: EnterCmdOnCmdLine("show calls") \n\
<Key>0xFF91,<Key>0xFFB5: EnterCmdOnCmdLine("show calls 3") \n\
<Key>0xFF8D: activate()\n
!
! IDENTIFIER WORD SELECTION: (language-based delimiters)
! NOTE: DO NOT use any double click combinitation for the following resource
! otherwise normal text selection in the source window will not work.
!
DebugSource.IdentifierSelectionSequence: Ctrl<Btn1Down>
!
! EXIT CONFIRMATION:
!
DebugDisplayExitConfirmDB: True
!
! COMMAND ECHO:
!
DebugEchoCommands: True
!
! TITLE FORMAT: Main window and optional view window.
!
! The following title format directives are supported:
!
! %t - The title of the debugger application.
! %p - The name of the user program being debugged.
! %f - The name of the current file displayed in the source window.
!
DebugControl.TitleFormat: %t - %p: %f
!
! DRAG AND DROP MESSAGE SUPRESSION:
!
*.dragInitiatorProtocolStyle: DRAG_NONE
*.dragReceiverProtocolStyle: DRAG_NONE
|
|
Ahhh V6.2... the resource file I sent you works for 7.0+
but all is not lost, only more complicated...
In your VMSDEBUG.DAT file, add the following line:
DebugSource*MessageOutputPanel*DXmCSText.fontList: -your-fixed-fontspec
In case you are not familiar with the wonderful world of font specs,
you can try this one:
-*-Terminal-*-R-*--*-120-*-*-*-*-ISO8859-1
It's plenty ugly, but commands like SHOW STACK and SHOW IMAGE
are lined up well. You may notice a couple of backwards question
marks, particularly when the banner is displayed, but these should
not be a problem. If you find a better font, please post it so
myself and others can adopt it. Also, if you simply define the
resource but leave off the font spec, it will default to your
default DECterm font which is also fixed space, but usually small.
Finally, be sure there are no white-space characters after resource
definitions as the Motif resource parser is notably stupid.
By the way, the V7.0+ debugger has many improvements including
fonts and much faster startup. I know they can be run on V6.2
systems if you really wanted to do so.
Regards, Gary Newsted
|
|
>.4> fonts and much faster startup. I know they can be run on V6.2
>.4> systems if you really wanted to do so.
>
> Ahhh..! I think I'd like to know How that's done.. I really like the V7.1
> DEBUGger enhancements alot.
Assuming this is an internal site, you can pick up a copy of the V7.1 Alpha
debugger that shipped with C++ V5.5 in February from:
BULOVA::DBG$PUBLIC:ADB*.*
Usual process of installing via @SYS$UPDATE:VMSINSTAL. Note, however that
this kit will _not_ replace your system debugger. Rather it installs the
debugger as CXX<blahblahblah>. There are directions in the installation
procedure/release notes which point to .COM files, contained in that kit,
which will define logicals (on a system or job basis) to get you to this
debugger, rather than the debugger provided with the system. Need any help,
just ask...
Mary
|