473,320 Members | 1,825 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.

Debug.Wrile does not appear on the Output Window

In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!
How to solve it?

Thanks
Bernard

Apr 22 '06 #1
7 4063
Bernard,

Can you show the code?

On MSDN is written how to use it, we cannot change that.
Now you have only told, that it does not appear. By most of us it appears so
you should have done something special.

Cor

"Bernard Bourée" <be*****@bouree.net> schreef in bericht
news:e1**************@TK2MSFTNGP02.phx.gbl...
In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!
How to solve it?

Thanks
Bernard

Apr 22 '06 #2
Are your Debug statements being hit at all ? You can test for this by
setting a breakpoint at the line, and testing if execution stops there.

Regards,

Cerebrus.

Apr 22 '06 #3
Cor Ligthert [MVP] a écrit :
Bernard,

Can you show the code?

On MSDN is written how to use it, we cannot change that.
Now you have only told, that it does not appear. By most of us it appears so
you should have done something special.

Cor

"Bernard Bourée" <be*****@bouree.net> schreef in bericht
news:e1**************@TK2MSFTNGP02.phx.gbl...
In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!
How to solve it?

Thanks
Bernard


Cor

Of course I can show the code.
I have a small routine in order to trace my code.
Here it is.
It was working fine before but now not.
I have looked at the options but could not find a related item.

Thanks for your help
Bernard

Public Sub PrintLog(ByVal sMsg As String, Optional ByVal sTitre As
String = vbNullString)

Dim fs As New Scripting.FileSystemObject
Dim Stream As Scripting.TextStream
Dim NF As String
NF = NOM_FICHIER_LOG & "_" & Replace(CStr(Today), "/", "_") &
".log"
Stream = fs.OpenTextFile(NF, Scripting.IOMode.ForAppending, True)
Stream.WriteLine(CType(System.DateTime.Now, String))

Stream.WriteLine(sTitre & " : " & sMsg)
Debug.WriteLine(sMsg, sTitre)
Stream.Close()
bLogImprimé = True
End Sub

Apr 22 '06 #4
Bernard,

Are you sure that there is not a blank line.

Debug.WriteLine("", vbNullString)
By instance because this is happening

I hope this helps,

Cor

"Bernard Bourée" <be*****@bouree.net> schreef in bericht
news:ev**************@TK2MSFTNGP03.phx.gbl...
Cor Ligthert [MVP] a écrit :
Bernard,

Can you show the code?

On MSDN is written how to use it, we cannot change that.
Now you have only told, that it does not appear. By most of us it appears
so you should have done something special.

Cor

"Bernard Bourée" <be*****@bouree.net> schreef in bericht
news:e1**************@TK2MSFTNGP02.phx.gbl...
In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!
How to solve it?

Thanks
Bernard


Cor

Of course I can show the code.
I have a small routine in order to trace my code.
Here it is.
It was working fine before but now not.
I have looked at the options but could not find a related item.

Thanks for your help
Bernard

Public Sub PrintLog(ByVal sMsg As String, Optional ByVal sTitre As String
= vbNullString)

Dim fs As New Scripting.FileSystemObject
Dim Stream As Scripting.TextStream
Dim NF As String
NF = NOM_FICHIER_LOG & "_" & Replace(CStr(Today), "/", "_") &
".log"
Stream = fs.OpenTextFile(NF, Scripting.IOMode.ForAppending, True)
Stream.WriteLine(CType(System.DateTime.Now, String))

Stream.WriteLine(sTitre & " : " & sMsg)
Debug.WriteLine(sMsg, sTitre)
Stream.Close()
bLogImprimé = True
End Sub

Apr 22 '06 #5
"Bernard Bourée" <be*****@bouree.net> schrieb:
In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!


Are you running the project using the Release or Debug configuration? Maybe
switching to the Debug configuration fixes the problem.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 22 '06 #6
Cor Ligthert [MVP] a écrit :
Bernard,

Can you show the code?

On MSDN is written how to use it, we cannot change that.
Now you have only told, that it does not appear. By most of us it appears so
you should have done something special.

Cor

"Bernard Bourée" <be*****@bouree.net> schreef in bericht
news:e1**************@TK2MSFTNGP02.phx.gbl...
In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!
How to solve it?

Thanks
Bernard


Cor

No I have a break point on it and have cheked that the string is not empty

Bernard

Apr 22 '06 #7

"Bernard Bourée" <be*****@bouree.net> wrote in message
news:un**************@TK2MSFTNGP05.phx.gbl...
Cor Ligthert [MVP] a écrit :
Bernard,

Can you show the code?

On MSDN is written how to use it, we cannot change that.
Now you have only told, that it does not appear. By most of us it appears
so you should have done something special.

Cor

"Bernard Bourée" <be*****@bouree.net> schreef in bericht
news:e1**************@TK2MSFTNGP02.phx.gbl...
In order to trace my job I placed some
Debug.Writeline in my code but they don't appear in the output window!
How to solve it?

Thanks
Bernard


Cor

No I have a break point on it and have cheked that the string is not empty

Bernard

Just for fun how about trying Debug.Print instead of Debug.Writeline? It
should make no difference but then what you're doing "should" work (assuming
you're in debug mode).
Apr 26 '06 #8

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

Similar topics

4
by: Bill Cohagan | last post by:
I'm writing a console app (in C#) and I want to be able to redirect the standard input/output streams when it's run at a command prompt. IOW I want to support the "<" and ">" redirection syntax....
5
by: chris | last post by:
Hello all - Preface: This isn't a C# Builder question but if you happen to have the answer to my primary problem, please feel free to chime in ;-) I'm using Borland's C# Builder (Personal)...
1
by: John Grandy | last post by:
Microsoft Development Environment 2003 , v7.1.3088 In debug mode, when using Debug.WriteLine() , does anyone know which window displays the output ? What is the menu command which shows this...
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
9
by: David A. Beck | last post by:
When I do a debug.print("blabla") in VB (VS2005) it doesn't show up in the output window, what gives?
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
3
by: Arman Sahakyan | last post by:
Hi, I'm an MFC programmer and know little about .NET programming. Now, for some reasons, I'm developing an ASP .NET application... What I need to know is how to output into VS's Output Window...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
3
by: TC | last post by:
I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the...
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
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.