473,659 Members | 2,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4080
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******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP02.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.FileS ystemObject
Dim Stream As Scripting.TextS tream
Dim NF As String
NF = NOM_FICHIER_LOG & "_" & Replace(CStr(To day), "/", "_") &
".log"
Stream = fs.OpenTextFile (NF, Scripting.IOMod e.ForAppending, True)
Stream.WriteLin e(CType(System. DateTime.Now, String))

Stream.WriteLin e(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******** ******@TK2MSFTN GP03.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******** ******@TK2MSFTN GP02.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.FileS ystemObject
Dim Stream As Scripting.TextS tream
Dim NF As String
NF = NOM_FICHIER_LOG & "_" & Replace(CStr(To day), "/", "_") &
".log"
Stream = fs.OpenTextFile (NF, Scripting.IOMod e.ForAppending, True)
Stream.WriteLin e(CType(System. DateTime.Now, String))

Stream.WriteLin e(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******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP05.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******** ******@TK2MSFTN GP02.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
8737
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. The obvious way to do this is by using the static Console type properties, In and Out. When trying to debug the app in the IDE however, this doesn't appear to work. I've edited the project properties and added the necessary text to the "command...
5
3025
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) and it seems there isn't an Output window (where the Debug.WriteLine() info would go) like VS has. If there is, I can't find it. I would like to know if it is possible to write a class with the ability to call a console window that would display...
1
1754
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 window ? Thanks.
7
18786
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 2003 The sample in the help file does not work. I tried now for days ... Pls could anybody post a sample, including necessary imports and so on -
9
10833
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
24210
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
3
2866
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 like what MFC's TRACE macro does (during debugging). Could you please share your knowledge with me? Thanks in advance.
6
9134
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++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
3
13854
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 application is run in Debug mode. However, I just can't get that to work. I'm using Visual Studio 2005. I've confirmed that my application is compiled as a console application, and that I'm running in Debug mode. To investigate this issue, I've reduced...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.