home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / tools / 1689 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.8 KB  |  52 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools
  2. Path: sparky!uunet!spool.mu.edu!caen!malgudi.oar.net!news.ans.net!cmcl2!panix!rryan
  3. From: rryan@panix.com (Rob Ryan)
  4. Subject: Re: MSC 7.0 windows debug mode and 'Cant read from device AUX'
  5. Message-ID: <1992Dec12.162240.24351@panix.com>
  6. Date: Sat, 12 Dec 1992 16:22:40 GMT
  7. Distribution: comp.os.ms-windows.programmer.tools
  8. References: <RHARMON.92Dec10144328@triton.uucp> <1992Dec12.001809.2647@microsoft.com>
  9. Organization: Panix, NYC
  10. Lines: 40
  11.  
  12. In <1992Dec12.001809.2647@microsoft.com> stevesi@microsoft.com (Steven
  13. Sinofsky) writes:
  14.  
  15. >Whenever you run debug kernel you need to have your machine connected
  16. >to a com port so that the output from the debug kernel has some place
  17. >to go.  If you don't have (or don't want to use) a second machine/dumb
  18. >terminal then just run the DBWIN app that ships with C7.  Add it to
  19. >your startup group for maximum benefit.
  20.  
  21. Incidentally, dbwin.exe is one of those programs that is nice to have in
  22. one's startup group when using the debugging kernel, but pretty useless when
  23. not.  I use the following program, ifdebug, to conditionally run programs in
  24. my startup group when using the debugging kernel.  Thus rather than having
  25. "dbwin" and "drwatson" in my StartUp group, I have "ifdebug dbwin" and
  26. "ifdebug drwatson" there (I manually changed the icons and description text
  27. to reflect what program was actually being run).
  28.  
  29. Hope this helps.
  30.  
  31. -- Rob
  32.  
  33. -------------------------------- cut here --------------------------------
  34. /* ifdebug.c */
  35.  
  36. #include <windows.h>
  37.  
  38. int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine,
  39.                    int nCmdShow)
  40. {
  41.     WINDEBUGINFO wdi;
  42.  
  43.     if (GetWinDebugInfo(&wdi, WDI_OPTIONS))
  44.         WinExec(lpCmdLine, nCmdShow);
  45.  
  46.     return 0;
  47. } /* WinMain */
  48.  
  49. -- 
  50.  Rob Ryan
  51.     rryan@panix.com
  52.