473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

no OutpuDebugString output ?

Hi All,

It looks like VS.Net does not display messages from
OutputDebugString while debugging managed code. Is it
right? Afraid so, or calls to this would work:

[DllImport("kernel32.dll")]
extern static void OutputDebugString(String str);

Anyway, I would love to be able to see debug messages from
my native dll (wrapped into MC++) while debugging that
dll's C# client. Any thoughts on how to achieve this
without changing every single call to the
OutputDebugString to something else?

Regards,
Pavel.

Nov 17 '05 #1
2 2401
Pavel wrote:
Hi All,

It looks like VS.Net does not display messages from
OutputDebugString while debugging managed code. Is it
right? Afraid so, or calls to this would work:

[DllImport("kernel32.dll")]
extern static void OutputDebugString(String str);

Anyway, I would love to be able to see debug messages from
my native dll (wrapped into MC++) while debugging that
dll's C# client. Any thoughts on how to achieve this
without changing every single call to the
OutputDebugString to something else?


I can't comment on whether the VS IDE shows OutputDebugString messages when
debugging managed code (sure seems like it ought to!). However, one option
you might be able to use is something like DebugView from SysInternals
(http://www.sysinternals.com/ntw2k/fr...bugview.shtml).

-cd
Nov 17 '05 #2

Yeah, I thought it 'ought to' as well :(. But now, looking
at documentation for DefaultTraceListener that "emit the
message to the OutputDebugString *and* to the
Debugger.Log", it surely looks like it must not. Otherwise
there would be duplicate messages in the Output Debug
window.

I wonder, what forced MS to introduce implementation of
the Debugger.Log different then a simple call to
OutputDebugString?

I knew about DebugView and was always wondering why people
use it when all you need is a debugger. Now I guess I
will have to start using it as well.

Regards,
Pavel.

-----Original Message-----
Carl wrote:
I can't comment on whether the VS IDE shows OutputDebugString messages whendebugging managed code (sure seems like it ought to!). However, one optionyou might be able to use is something like DebugView from SysInternals (http://www.sysinternals.com/ntw2k/fr...ebugview.shtml
).
-cd
.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
3
by: edgekaos | last post by:
Is method 2 valid? Method 1: wstring input = L"STRING"; wstring output = input; transform(output.begin(), output.end(), output.begin(), towupper); Method 2: wstring input = L"STRING";...
4
by: Kevin Mansel via .NET 247 | last post by:
Ok, basically this is my problem. I'm building a console app tocall a dos program. So i'm using the Shell command to call theprogram, now depending on what happens, I want to read theoutput that...
24
by: kalamantina | last post by:
#include "stdafx.h" #include <stdio.h> #define output( x ) printf( #x "\r\n" );fflush( stdout ) class CMyBase { public: CMyBase() { output( CMyBase() ); f(*this);
0
by: newbie | last post by:
i'm a newbie of c language. can anyone help me to implement the code so that I can get the ciphertext from the output. thanks. #ifndef _3DES_H #define _3DES_H #ifndef uint8 #define uint8 ...
32
by: spibou | last post by:
Is the output of the C preprocessor deterministic ? What I mean by that is , given 2 compilers which conform to the same standard, will their preprocessors produce identical output given as input...
3
by: MatsL | last post by:
Hi, This is seriously driving me crazy, could anyone explain to me why neither of these doesn't produce XHTML compliant output (it is being called in Render() btw): output.WriteLine("<img...
3
by: undshan | last post by:
I am writing a code that needs to open a file, create an output file, run through my function, prints the results to the output file, and closes them within a loop. Here is my code: #include...
2
by: gabosom | last post by:
Hi! I've been breaking my head trying to get the output variables from my Stored Procedure. This is my SP code CREATE PROCEDURE GetKitchenOrderDetail( @idService int, --outPut Variables ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.