Debug output for ActiveX Bridge
I'm using j2sdk1.4.2. I've tried System.out and a custom logger. Nothing shows up in the Java Console and nothing seems to appear on disk. Anyone know the super secret squirrel trick to debug one of these?
I'm using my bridge object as a (silent)
'var obj = new ActiveXObject(myobj.Bean)'
in a browser. When I register with the packager then I see output in the 'cmd' session from my constructor. I do not, however, ever see any output from the 'sun java console' that is associated with the browser. My bridge methods are getting called. I know because I've resorted to returning a comment string back to the browser, e.g.
<!-- setChannel returned success! -->
Which, IMHO, is a pretty lame way to have to debug.
Thanks for help
Similar Messages
-
I am writing a beam using to connect a servlet for a Excel VB ActiveX plug-in.
My bean cannot connect to the web server correctly.
( but it is ok when i used the beans in pure java environment )
I found it is difficult to debug the bean,
I cannot do any println or printStackTrace
is there any way make the debug process more easier ??I use the command line entry in the Java Plugin Configuration
(-Xdebug -Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=n)
and use Netbeans 3.5 for attaching the debugger to the JVM that runs my Beans. (Assuming your using the ActiveX Bridge delivered with Java 1.4.2) -
ASP page hang for calling ActiveX bridge!!!
Below are the steps I done
Note: Using jdk1.5.1.
1) It is my java program, i make it as simple program
public class FirstProgram{
public FirstProgram(){
public String getMessage(){
return "hello";
2) My manifest.stub is like this:
Name: FirstProgram.class
Java-Bean: true
3) Then I generate the "FirstProgram.jar" file.
4) Then I register like this
jdk1.5.1\bin\packager -out C:\Program Files\Java\ j2re1.5.1\axbridge\bin -reg FirstProgram.jar FirstProgram
5) I tested this dll with Visual Basic. It works fine.
6) I tested this dll with VB script in ASP.
<%@ Language=VBScript %>
<%
Dim oTest
Set oTest = CreateObject("FirstProgram.Bean.1")
Response.Write oTest.getMessage()
Set oTest = Nothing
%>
or I tried like this
<%@ Language=VBScript %>
<%
Dim oTest
Set oTest = Server.CreateObject("FirstProgram.Bean.1")
Response.Write oTest.getMessage()
Set oTest = Nothing
%>
Page will be be unavaible and i run it again (then IIS will hang and die).
1) How do i solve this problem? Why it is able to run in VB not in asp? Is it because IIS bug?
Note: Windows Server 2003 IIS 6.0/ Windows XP IIS 5.1 ( I have tested it on
these two environments, it gave me same results).
2) I read some forums said we might need to use javareg.exe to register this component. Is it true? Where can I get this component?
Thanks for you help!!!I am having the same problem.
I am running Windows 2003 Server and trying to create the object, but it is hanging. I am running the Sun JRE 1.5.3 ActiveX Bridge.
I have tried both IIS6 and IIS5 Isolation Mode, but neither work. Under IIS5, IIS just hangs.
HELP! -
Problems with the ActiveX bridge for Java beans when using third-party .jar
I encountered the following problem when using the ActiveX bridge for a java bean:
I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
I studied the documentation about the ActiveX bridge given at:
http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).See how to solve your problem with JNI:
http://codeproject.com/cpp/OOJNIUse.asp
More examples (for SWING) in tools setup:
http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
http://www.simtel.net/product.php[id]93174[SiteID]simtel.net -
How to turn of debug output from the jdriver for Oracle
We are running our builds with Ant and doing unit-tests with junit/cactus.
The Weblogic jDriver produces what appears to be debug info on standard out which
in turn is captured by junit in xml files reporting errors etc. The problem is that
the WebLogic driver ( WL6.1 SP2) sometimes produces binary 0's ( see below) ending
up in the result xml files, and that Ant's result xml parser cannot handle - (nor
should it ).
This is probably a bug in the c-code for the jdriver , the oci dll ?
Would much appreciate how to turn off the debug(?) logging that the jDriver does:
looks like this (look for the string "[6 binary 0's]"):
Parsing: select length(SYSDATE) from dual
Executing: select length(SYSDATE) from dual
Parsing: select VALUE from V$NLS_PARAMETERS where PARAMETER='NLS_NUMERIC_CHARACTERS'
Executing: select VALUE from V$NLS_PARAMETERS where PARAMETER='NLS_NUMERIC_CHARACTERS'
Done logging in at: 60
Connection: using OCI API: OCI8[6 binary 0's]
Connection successfully established via plain JDBC
DriverManager.getDriver("jdbc:weblogic:oracle:LSS_DBSVC_DEV_autobuild")
trying driver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]
getDriver returning driver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]Hi Gunnar,
I'd check your code for appearances of "DriverManager.setLogWriter" that set
log writer to System.out. This is the way to get driver's debug output
to standard out.
Regards,
Slava Imeshev
"Gunnar Skogen" <[email protected]> wrote in message
news:3d2972bb$[email protected]..
>
We are running our builds with Ant and doing unit-tests with junit/cactus.
The Weblogic jDriver produces what appears to be debug info on standardout which
in turn is captured by junit in xml files reporting errors etc. Theproblem is that
the WebLogic driver ( WL6.1 SP2) sometimes produces binary 0's ( seebelow) ending
up in the result xml files, and that Ant's result xml parser cannothandle - (nor
should it ).
This is probably a bug in the c-code for the jdriver , the oci dll ?
Would much appreciate how to turn off the debug(?) logging that thejDriver does:
looks like this (look for the string "[6 binary 0's]"):
Parsing: select length(SYSDATE) from dual
Executing: select length(SYSDATE) from dual
Parsing: select VALUE from V$NLS_PARAMETERS wherePARAMETER='NLS_NUMERIC_CHARACTERS'
Executing: select VALUE from V$NLS_PARAMETERS wherePARAMETER='NLS_NUMERIC_CHARACTERS'
Done logging in at: 60
Connection: using OCI API: OCI8[6 binary 0's]
Connection successfully established via plain JDBC
DriverManager.getDriver("jdbc:weblogic:oracle:LSS_DBSVC_DEV_autobuild")
tryingdriver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]
getDriver returningdriver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]
>
> -
How to build an ActiveX bridge for jasper viewer
Hi,
i want to build an ActiveX bridge for Jasper viewer.Does anyone knows How to build an Active X bridge for a component.I am very new to this concept.Please someone help mehi,
can u please give some url's which is helpful to create Activex Bridge? -
I am having problems with my VB 6.0 program that uses a Java Activex Bridge. When I shut down my VB 6.0 application the service control manager logs a message in the event log that the program terminated unexpectedly.
I have done some analysis and I have realised that the service control manager outputs this message only when my VB application creates the Java activex object. It appears that for some reason the Java object does not destruct cleanly.
I have got 2 versions of Java plug-in 1.3.0 and 1.3.0_02. Only 1.3.0_02 is enabled. I am not sure whether are any known issues with the version of the plug-in I am using which causes this behaviour.
I will be grateful for any suggestion which would help me in resolving the above problem.Check the registry. The activeX has a CLSID, the CLSID points to a jar file (HKCR/CLSID/{$CLSID}) does this jar exist?
Does the beans.ocx used exist. Is it used in a plug-in that works (in the control panel there a Java Plug in for each version). -
Cisco 1310 Roam Reason (Debug Output Possible?)
I have some 1310s. One is in WGB mode. It roams between the other Access Points that are in LAP mode.
What I need to know is if there is a way to debug WHY the WGB roams. Is there a debug that I can apply that will output the reason for the roam? Usually it would be due to signal level change but there are other reasons as well.
Hopefully this is an easy one. I keep alternating between associated access points and I can't figure out why.
I have figured out that I can put the bridge in Install Mode to get an output of the RSSI level of the associated AP, but this does not tell my WHY the roam took place.
Thanks!
JamesHi James,
Here is the show command which will tel us about the roam history.. But not a debugging output though..
show client roam-history
>> As such there is no debug that give us just the Roam details.. Debug client will provide very good info..
>> I think we can manually set the channel on that LWAPP to something so that the WGB will associate to that.. or if the TX power iscausing the issue, then playing around with the TX power on the LWAPP may help us.
Regards
Surendra -
Adobe output module in Bridge CC gives Failure at processing
The output module in Bridge CC isn't standard installt any more, so you have tot do it you self!!!!!!
After instaling it is visseble and it seemed to work, but during processing it gives the error " 1/0- fout ( = failure in dutch)
Who know an answer.Hello, gooie Dag! Since The output module is an additional module, your question is not exactly one for beginners, I'm moving this discussion to the Bridge forum.
-
Could not deliver the output for Delivery channel:null
XML Publisher Report Bursting Program is throwing the following exception
Log file
========
XML/BI Publisher Version : 5.6.3
Request ID: 11900899
All Parameters: Dummy for Data Security=Y:ReportRequestID=11900819:DebugFlag=Y
Report Req ID: 11900819
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:DB94
Preparing parameters
null output =/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11900899.out
inputfilename =/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11900819.out
Data XML File:/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11900819.out
Set Bursting parameters..
Temp. Directory:/caop/app02/common/caopcomn/temp
[071713_110919401][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.1.0 - Production
[071713_110919410][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=11900819, user-variable:cp:language=en, user-variable:cp:responsibility=21540, user-variable.OA_MEDIA=http://db172.coresys.com:17204/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=11900819, user-variable:cp:locale=en-US, user-variable:cp:user=PRAYAPUDI, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=11900899, user-variable:cp:org_id=0, user-variable:cp:reportdescription=Care One Salary Change Approval, user-variable:cp:Dummy for Data Security=Y}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
Output File
========
<?xml version="1.0" encoding="UTF-8" ?>
- <BURS_REPORT>
<REQUESTID>11901286</REQUESTID>
<PARENT_REQUESTID>11901285</PARENT_REQUESTID>
<REPORT_DESC>Care One Salary Change Approval</REPORT_DESC>
<OUTPUT_FILE>/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11901286.zip</OUTPUT_FILE>
- <DOCUMENT_STATUS>
<KEY />
<OUTPUT_TYPE>EXCEL</OUTPUT_TYPE>
<DELIVERY>email</DELIVERY>
<OUTPUT>/caop/app02/common/caopcomn/temp/071713_120851408/xdo1_2.xls</OUTPUT>
<STATUS>fail</STATUS>
<LOG>Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..</LOG>
</DOCUMENT_STATUS>
</BURS_REPORT>
XML File
======
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Generated by Oracle Reports version 10.1.2.3.0 -->
<CAO_SAL_CHG_APR>
<LIST_G_EMAIL>
<G_EMAIL>
<EMAIL>[email protected]</EMAIL>
<LIST_G_MESSAGE_NUMBER>
<G_MESSAGE_NUMBER>
<MESSAGE_NUMBER>1</MESSAGE_NUMBER>
<PERCENT_CHANGE>-98.75</PERCENT_CHANGE>
<SALARY_CHANGE_AMT>-23,621.00</SALARY_CHANGE_AMT>
<DATE_CHANGE_MADE>07/16/2013</DATE_CHANGE_MADE>
<APPROVER_NAME>Veluz, Cynthia Avila</APPROVER_NAME>
<APPROVER_JOB>Administration|Center|Payroll/Benefits Coordinator</APPROVER_JOB>
<PERSON_NAME>Donet, Andrew P</PERSON_NAME>
<PERSON_NUM>131996</PERSON_NUM>
<LOCATION_CODE>HR - CareOne at Morris ALF</LOCATION_CODE>
<REGION_2>NJ</REGION_2>
<JOB_TITLE>Administration|Center|Director of Admissions</JOB_TITLE>
<CURRENT_ANNUAL_SAL>299.00</CURRENT_ANNUAL_SAL>
<PREVIOUS_ANNUAL_SAL>23,920.00</PREVIOUS_ANNUAL_SAL>
<PAY_BASIS>PERIOD</PAY_BASIS>
<CUR_PAY>11.50</CUR_PAY>
<CHANGE_DATE>07/21/2013</CHANGE_DATE>
<SALARY_CHANGE_REASON></SALARY_CHANGE_REASON>
<EMPLOYMENT_CATEGORY>Fulltime-Regular</EMPLOYMENT_CATEGORY>
<ERIC_WILLIAMS>[email protected]</ERIC_WILLIAMS>
</G_MESSAGE_NUMBER>
</LIST_G_MESSAGE_NUMBER>
</G_EMAIL>
</LIST_G_EMAIL>
</CAO_SAL_CHG_APR>
Control File
========
<?xml version="1.0" encoding="UTF-8" ?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="CAO_SAL_CHG_APR/LIST_G_EMAIL/G_EMAIL">
<xapi:delivery>
<xapi:email server="smtp.coresys.com" port="25" from="[email protected]" reply-to="[email protected]">
<xapi:message id="123" to="[email protected]"
attachment="true"
subject="Salaries Changed Yesterday">
Please do not reply to this email, it is system-generated.
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="Care_One_Salary_Change_Approval" output-type="EXCEL" delivery="123">
<xapi:template type="rtf" location="xdo://CAO.CAO_SAL_CHG_APR.en.US/?getSource=true">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
It is greatly apprecaited, if you can take a look the issue.
Thank you,
-Pradeep.Hello Sir,
I am hard coding the Email id in the control file. From/To/CC emails I have hard coded. I want to paste the Control file... But I could not because, not allowing me to post XML content.
Thanks
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/EMPLOYEE_REPORT/EMPLOYEE">
<xapi:delivery>
<xapi:Email server="mycompanyserver" port="25" From="[email protected]" reply-to ="[email protected]">
<xapi:message id="123" to="[email protected]" cc="[email protected]"
attachment="true" subject="Employee Details for ${FULL_NAME}"> Mr./Ms. ${FULL_NAME}, Please review the attached document
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output-type="pdf" delivery="123">
<xapi:template type="rtf" location="xdo://XBOL.TEST_ABC_XML.en.US/?getSource=true">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
Edited by: user9367932 on Apr 13, 2010 4:59 AM
Edited by: user9367932 on Apr 13, 2010 4:59 AM -
Error!! Could not deliver the output for Delivery channel:null
Hi Friends,
XML/BI publisher : 5.6.3
Oracle Applications : R12.0.6
Bursting program Log file
==================
XML/BI Publisher Version : 5.6.3
Request ID: 993023
All Parameters: Dummy for Data Security=N:ReportRequestID=993022:DebugFlag=Y
Report Req ID: 993022
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:XXXXXGRP02
Preparing parameters
null output =/devrpi/applcsf/out/DEVRPI_auohscgrp02/o993023.out
inputfilename =/devrpi/applcsf/out/DEVRPI_auohscgrp02/o993022.out
Data XML File:/devrpi/applcsf/out/DEVRPI_auohscgrp02/o993022.out
Set Bursting parameters..
Temp. Directory:/tmp
[041210_040045855][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.130 - Production
[041210_040045859][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=993022, user-variable:cp:language=en, user-variable:cp:responsibility=50537, user-variable.OA_MEDIA=https://appscgrpdev.oracleoutsourcing.com:443/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=993022, user-variable:cp:locale=en-US, user-variable:cp:user=Dev2, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=993023, user-variable:cp:org_id=90, user-variable:cp:reportdescription=Test_xml_bursting, user-variable:cp:Dummy for Data Security=N}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
Bursting program Out put file
==================
Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details.Hello Sir,
I am hard coding the Email id in the control file. From/To/CC emails I have hard coded. I want to paste the Control file... But I could not because, not allowing me to post XML content.
Thanks
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/EMPLOYEE_REPORT/EMPLOYEE">
<xapi:delivery>
<xapi:Email server="mycompanyserver" port="25" From="[email protected]" reply-to ="[email protected]">
<xapi:message id="123" to="[email protected]" cc="[email protected]"
attachment="true" subject="Employee Details for ${FULL_NAME}"> Mr./Ms. ${FULL_NAME}, Please review the attached document
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output-type="pdf" delivery="123">
<xapi:template type="rtf" location="xdo://XBOL.TEST_ABC_XML.en.US/?getSource=true">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
Edited by: user9367932 on Apr 13, 2010 4:59 AM
Edited by: user9367932 on Apr 13, 2010 4:59 AM -
Debugging output not appearing
I recently absorbed the task of supporting our CF MX 6.1
server. We have an app that we need to debug - the developer asked
us to add her IP address to the "Debugging IP Addresses" list. I
turned on debugging and added her IP address to the list, but
debugging output is not displaying; this is true even when you run
the CF app on the server running CF. The steps I took are as
follows:
- In CF Administrator, checked Enable Robust Exception
Information and Enable Debugging. Submitted changes and got msg
Server has been updated successfully.
- Added developer's IP address to the list of debugging IP
addresses. She couldn't see the debug output. Neither could I.
- Restarted CF server. No change.
- Rebooted server box. No change.
- Tried removing all IP addresses from list. Debugging input
then shows for everyone.
One thing of note regarding the setup of the server is that
IE has "Internet Explorer Enhanced Security Configuration" enabled
- don't know if this would have any impact. I'd also tried adding
the local IP address of my machine (I'm on the same LAN as the
server), and I got no debug info on my machine. Our whole LAN,
including the CF Server's box, is behind an ISA server, but of
course that wouldn't have any impact on the local server, and I
don't *think* it would affect machines on the LAN, but I'm not
certain of this.
Showing the debug info to everyone is not an option, so we
need to get the IP address filtering working. I've looked at the
Windows event logs, the CF logs, and these forums, and can't find
any helpful info.
Server config:
Windows Server 2003 (Standard Ed.) SP1
ColdFusion MX 6.1 (6,1,0,63958) Standard
Any suggestions would be very much appreciated.I figured out the problem - it turns out that even our LAN
traffic goes through our ISA server, and the ISA server passes its
IP address to IIS, so CFMX is seeing all traffic as coming from the
same IP address - the LAN address of the ISA server. Adding that
turned it on for everyone, so it seems that the solution lies in
changing the config of the ISA server to pass through IP addresses.
See post by "Smiley Dave" titled "Debug IP Addresses" for a little
more info, though there's no info in that thread that he ever
actually got it working. -
Why is the Output Panel in Bridge blank?
When I select the Output Workspace in Bridge, the panel at the right is blank - no buttons, fields, or anything other than a monotonous dark gray surface. When I select the Output button and the Output to Web or PDF option, nothing happens.
In edit/preferences/start up scripts do you have check marks for eveything?
-
How do i get the installation package for Adobe Bridge
Hello,
Our Creative services Department have taken a Creative Cloud account and they only want to install Adobe Bridge, however when i access the Creative Cloud account there is no installer for Adobe Bridge. Now i believe Bridge is installed as part of the installation package for other Creative Cloud products such as Photoshop, so how would i find the installer package for just Bridge?
Any help greatly appreciatedand it seems like I saw this somewhere,
http://www.adobe.com/products/bridge.html
http://www.dummies.com/how-to/content/how-to-work-with-bridge-cc-and-the-adobe-output-ma.h tml -
Stupidly easy - trace source to debug output inunit test...
I'm convinced that this is stupidly easy, but I cant figure it out...
I have a class with "TraceSource "classname" and in debugging it work fine, I see the output in the "output" window, however when running unittests I only see "debug.Write" output...
What am I missing... do I need to add a listener route or something?!
- sure I'm noJedi but that's no reason to stop trying to make stuff levitate! -
to clarify...this UnitTest:
[TestMethod()]
public void TestLogging()
System.Diagnostics.Debug.WriteLine("this is a debug writeline");
System.Diagnostics.Trace.WriteLine("this is a Trace writeline");
var ts = new System.Diagnostics.TraceSource("classname");
ts.TraceInformation("this is a ts.TraceInformation");
throw new AssertInconclusiveException();
outputs this:
Test Name: TestLogging
Test Outcome: Skipped
Result Message: Exception of type 'Microsoft.VisualStudio.TestTools.UnitTesting.AssertInconclusiveException' was thrown.
Result StandardOutput:
Debug Trace:
this is a debug writeline
this is a Trace writeline
Now... for SOME reason, THIS is NOT outputing to the DebugOutput either... when I step through the TEST...
however stepping through code NOT in unit test does put stuff in the debug output window...
What am I missing... why is the TraceSource not outputting... I can see in step through that the DefaultTraceListener is there (its the only listener) and I was under the impression that it directed output to the DebugOut output stream... is this not what
I think it is...?!Hi Jack,
I think you are correct in that my expectations were wrong.
1) stepping through "SwitchLevel" is "Off", in the unit test, which is problematic.
turning it on (to All) starts logging, but ONLY when I manually add a CONSOLETraceListener (and set the route to debug error stream to true)
2) the doco you've pointed me at was what I was reading, but I think I read/misread it differently than you...
I think its this that threw me:
•A DefaultTraceListener emits Write and WriteLine messages to the OutputDebugString and to the Debugger.Log method. In Visual Studio, this causes the debugging messages to appear in the Output window. Fail and failed Assert messages also emit to the OutputDebugString Windows API and the Debugger.Log method, and also cause a message box to be displayed. This behavior is the default behavior for Debug and Trace messages, because DefaultTraceListener is automatically included in every Listeners collection and is the only listener automatically included.
to my thinking this means that by default a "Default -> aka Debug (when DEBUGGGING)" is created for you always, and therefore in the ABSENCE of config stuff, this would be perfect for UNITTESTING - therefore TraceSource with nothing but a name
should effectively produce the same output as "Debug.WriteLine"...
that was my thinking, but it looks like even with 'SourceLevel.All" you still need to fiddle with it...
Thanks for your input, for now, I've resolved this by adding the above stuff so that my existing TraceSources are at least outputting stuff in my tests so I can see more of what is going on without having to change my "TraceSource" calls to "Debug"
calls everywhere.
- sure I'm noJedi but that's no reason to stop trying to make stuff levitate! -
Maybe you are looking for
-
Opened newer version on Home Share, now my iPhoto won't open
My wife opened my iPhoto to copy over some pictures on her computer, using iLife09. Now whenever I try to log into my own iPhoto library, from my own computer, it says that I do not have the latest version of iPhoto and won't open. How can I fix this
-
Sort Order problem in a cursor
Hi, I have a cursor where the sort order needs to be specified dynamic. I have declared variables (say x and y) which contains the numbers. When I use them in the order by clause, though no compilation error, but the sorting does not occur. Eg. Curso
-
Why can't I access my iwork library
So I'm trying to remove some of my templates from Pages and I can't find the home>library>application support>iWork>Pages>Templates hierarchy. Do they hide it from users? It pops up when I want to add a template, but then I can't find it when I go
-
Captions in iphoto11 places slideshow do not save when edited
I am arranging a slideshow that I put together using the places theme. I accidentally labelled one of the captions for the text slide with the wrong location. Now when I try to correct it, it seems fine , but then my changes are lost if I close/reope
-
IPhone 4 froze during iOS 7.02 update
I just attempted to update my iPhone 4 to iOS 7.02 (from iOS 7) and had the phone freeze up during the verification of update process. After disconnecting the phone from my laptop it wouldn't even allow me to power down the phone for a few minutes. I