🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #612

Re: DebugOutput() probs : was Re: MSC 7.0 windows debug mode and 'Cant read from device AUX'

#612
From: Jeremy Thorp
Date: Tue, 22 Dec 1992 11:41
45 lines
2773 bytes
In article <1992Dec21.174914.24388@panix.com>, rryan@panix.com (Rob Ryan) writes:
|> In <1992Dec21.130416.10774@titan.inmos.co.uk> jeremy@cheetah.inmos.co.uk (Jeremy Thorp) writes:
|> 
|> >|> The main thing is that you need a line in your .DEF file that says:
|> >|> 
|> >|>   IMPORTS		_DebugOutput=KERNEL._DebugOutput
|> >|> 
|> >|> Also, this is a Windows v3.1 routine, so it won't work if you have
|> >|> Windows 3.0.  I'm not sure why this import is needed.  It is a documented
|> >|> function of the Windows 3.1 API, so you really shouldn't need to do this,
|> >|> but you do.  Also, the docs don't seem to reference to DBF_APPLICATION.
|> >|> Perhaps they simply expect everyone to use TRACE().
|> >
|> >I have tried (on previous occasions) the IMPORTS thing, and it
|> >enables the program to link ok.
|> >
|> >However, I have NEVER got DebugOutput to actually output anything. I
|> >am using the DBWin program provided in the SDK to display messages.
|> >OutputDebugString, and TRACE both work, DebugPut doesn't - ever!
|> >
|> >Does anyone know what I am doing wrong?
|> 
|> In dbwin, do you have the "application" box checked under trace in the
|> settings dialog box?  If this isn't checked, nothing will be produced.
|> You don't need to provide the name of the application, but make sure
|> that the "Application" box is checked.

The application check box is checked.

I have a point in my code that calls OutputDebugString, DebugOutput, and then
OutputDebugString again (3 successive lines).
The OutputDebugString strings are displayed by DBWin, but the
DebugOutput string is not. I am using DBF_TRACE as the first parameter to DebugOutput

Yours, perplexed but still hopeful,

Jeremy

-- 
Jeremy Thorp, INMOS Ltd, 	|	jeremy@inmos.com
1000 Aztec West, Almondsbury, 	|	jeremy@inmos.co.uk
Bristol, BS12 4SQ, UK.		|	
Tel.  +44 454 616616    Fax. +44 454 617910
The above is the personal opinion of the author,
and does not necessarily reflect INMOS policy.
Technical Details
Message-ID: <1992Dec22.114159.19769@titan.inmos.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!fulcrum!inmos!titan.inmos.co.uk!cheetah!jeremy
References: <RHARMON.92Dec10144328@triton.uucp> <1992Dec11.160246.3274@panix.com> <1992Dec15.114345.8779@titan.inmos.co.uk> <1992Dec16.135938.21596@panix.com> <1992Dec21.130416.10774@titan.inmos.co.uk> <1992Dec21.174914.24388@panix.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!fulcrum!inmos!titan.inmos.co.uk!cheetah!jeremy
From: jeremy@cheetah.inmos.co.uk (Jeremy Thorp)
Newsgroups: comp.os.ms-windows.programmer.tools
Subject: Re: DebugOutput() probs : was Re: MSC 7.0 windows debug mode and 'Cant read from device AUX'
Message-ID: <1992Dec22.114159.19769@titan.inmos.co.uk>
Date: 22 Dec 92 11:41:59 GMT
References: <RHARMON.92Dec10144328@triton.uucp> <1992Dec11.160246.3274@panix.com> <1992Dec15.114345.8779@titan.inmos.co.uk> <1992Dec16.135938.21596@panix.com> <1992Dec21.130416.10774@titan.inmos.co.uk> <1992Dec21.174914.24388@panix.com>
Sender: jeremy@cheetah (Jeremy Thorp)
Distribution: comp.os.ms-windows.programmer.tools
Organization: INMOS Limited, Bristol, UK
Lines: 45