Skip to contentSkip to conversation

debug messages, how to turn them on?

DISCUSSION Stuart Axon 2 participants 2 messages Jan 20, 2003

lore
Share & tools
lore
#0 lore raw

I see debug messages in the code like; (in mfs.c) Debug0((dbg_fd, "selecting drive fn=%x sda_cds=%p\n",

	  fn, (void *) sda_cds));
and tried
c:\>  dosdbg #dMRWgnsEPSXchkpxCIdimrv
Current debug message class settings:
#  interrupt   ON          A  unknown     OFF         C  cdrom       ON
D  dos         OFF         E  EMS         ON          I  IPC         ON
M  DPMI        ON          P  pktdrv      ON          Q  unknown     OFF
R  disk Reads  ON          S  unknown     ON          T  unknown     OFF
W  disk Writes ON          X  X support   ON          Z  unknown     OFF
a  unknown     OFF         c  config      ON          d  disk        ON
g  general     ON          h  hardware    ON          i  port I/O    ON
j  unknown     OFF         k  keyboard    ON          m  mouse       ON
n  network     ON          p  printer     ON          r  PIC         ON
s  serial      ON          u  unknown     OFF         v  video       ON
w  warnings    ON          x  XMS        

ON

...and don't get any debug messages anywhere; I would expect them to be on stderr? I tried running dosdebug and nothing comes out on that... is there a config option I am missing?

#1 lore raw
Quoted 5 lines · Stuart Axon

I see debug messages in the code like; (in mfs.c)

...and don't get any debug messages anywhere; I would expect them to be on stderr? I tried running dosdebug and nothing comes out on that... is there a config option I am missing?

MFS is covered by the "-d" flag. The MFS code uses a non-standard syntax though, probably because of its legacy.

In any case.

For dosemu < 1.1.4:
if you use the "dosemu" script:
* by default debug output goes to ~/dosemu/boot.log if you don't
* by default debug output goes to /dev/null
* if you invoke dosemu using -O it goes to stderr.

For dosemu >= 1.1.4
* by default debug output goes to ~/.dosemu/boot.log
* if you invoke dosemu using -O it goes to stderr.

For all these dosemu's:

if you invoke dosemu using "-o file" then debug output goes to that file. using:

$ dosdebug
at the linux prompt and then
log on
also gives you logging in that terminal (and you can turn on and off flags
in dosdebug too).

Bart