Re: A Toughie: Debugging a symbiont under DECwindows...

From: Tom Wade (t.wade_at_vms.eurokom.removespam.ie)
Date: 05/23/03


Date: Fri, 23 May 2003 15:44:46 +0100


"Galen" <gspamtackett@yahoo.com> wrote in message
news:bdc65a53.0305230421.4b510d0b@posting.google.com...
> ...when the VMS V7.3-1 workstation has:
>
> 1) Only one head, and no more available to be connected;
> 2) No network connection;
> 3) No serial terminal available to hook up.
>
> The debugger manual says you can't use a DECwindows display for
> debugging a detached process, so I guess I can't just define
> DBG$DECW$DISPLAY (though I haven't tried).
>
> Is there perhaps a pseudoterminal program that might do the job? It
> might let me create a pseudoterminal, point DBG$INPUT and DBG$OUTPUT
> to it, and then just pass characters between my DECterm and the
> debugger?

First get a window to POP up using:

$ Create /terminal /detached /noproc -
                /define_logical=(TABLE=LNM$SYSTEM,DEBUG_TTY)

This will create a window on your workstation (not logged in), and define a
logical name DEBUG_TTY in the system table to point at it. Don't type
anything in this window yet.

Then do the following (in an 'active' window *not* the one just created):

$ Define /table=LNM$GROUP_000001 DBG$INPUT DEBUG_TTY:
$ Define /table=LNM$GROUP_000001 DBG$OUTPUT DEBUG_TTY:

This defines the DBG logicals in the group table for username SYSTEM
(symbionts run under the SYSTEM account).

Then start your symbiont. The SMG style debug will start up in the window.
You can put the CREATE command in a command file, as you will need to
reexecute it every time you do a test run. The DBG logicals need be defined
once, and removed when you are finished.

I used the above for debugging symbiont code.

---------------------------------------------------------------
Tom Wade | EMail: tee dot wade at eurokom dot ie
EuroKom | X400: g=tom;s=wade;o=eurokom;p=eurokom;
Unit A2 | a=eirmail400;c=ie
Nutgrove Office Park | Tel: +353 (1) 296-9696
Rathfarnham | Fax: +353 (1) 296-9697
Dublin 14 | Disclaimer: This is not a disclaimer
Ireland | Tip: "Friends don't let friends do Unix !"



Relevant Pages

  • Re: AppleWin Debugger & AppleWin Ports
    ... I found the single-screen debugger constraining at first ... do what I needed within the window. ... the command line/docs are a little too obtuse for it ... debugger and set a breakpoint at $300, switch back to the emulator and CALL ...
    (comp.emulators.apple2)
  • Re: Why JIT Debugger Doesnt Work on Particular Project?
    ... > debugger doesn't seem to be working. ... any error in this one particular project just pops-up the window ... > app's config file, but the only config files I see are those in the ... But even when I removed the reference, still no debug window. ...
    (microsoft.public.dotnet.general)
  • Re: API
    ... Use the Watch window or the Locals window. ... Every visual debugger I've ever used, ... and then set the terminating null character to complete the string. ...
    (microsoft.public.windowsce.app.development)
  • Re: NetBeans debugger: suspend and see current stack trace how?
    ... My answer was about NetBeans. ... is a window with all the extant threads visible in the debugger view. ... Not by default, although once you open the window in the debugger, it will show the Threads window again next time it is started, at least on the same project. ... Lew, you should have mentioned you were using a beta build, because it *is* different than the stable version. ...
    (comp.lang.java.programmer)
  • Re: Debugger wont stop?
    ... Steven Lord wrote: ... >> Every once in a while, my M-editor (debugger) won't stop when I ... >> one funtion called a secondary function that is also open. ... but if I place a stop point in any window ...
    (comp.soft-sys.matlab)