Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8447331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:09:24+00:00 2026-06-10T10:09:24+00:00

I have a set of mstest unit tests, which use Trace.Write to collect some

  • 0

I have a set of mstest unit tests, which use Trace.Write to collect some debugging information. And when I run it from VS2010 and then go to Test Run Details, there’s Debug Trace section where I can see all my messages.

But when I run the same test from command line on the build machine, the trace is not recorded.

The things that I’ve tried:

  • Make sure that I’m in Debug configuration
  • /details command line switch with debugtrace, traceinfo etc options
  • I know about saving the traces to the file on the disk through the listeners, but I would like to find a solution to write

Has someone had a similar problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:09:26+00:00Added an answer on June 10, 2026 at 10:09 am

    Try using Console.WriteLine instead. I’ve had this problem before with MSTest, and using the WriteLine worked for me – in that there was output available in the test result view.

    No idea what other things like Debug.WriteLine or Trace.WriteLine didn’t work, I never bothered to found out to be honest. (Well, I stopped using MSTest and moved to NUnit)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a set of user acceptance tests (written in MSTest) which run fine
I'm writing some tests in Perl which have a fair amount of set up.
I have a VS2010 unit test project set to using SpecFlow 1.8.1 and mstest.
I have been using MSpec to write my unit tests and really prefer the
I am writing a set of integration tests (Unit tests with MS Test which
When running a large set of tests using MsTest from the command line, I
I have set up Eclipse Indigo to do line debugging with CFEclipse over port
I have a weird problem while building VS2010 solution incl. unit tests on a
I've been using MSTest so far for my unit-tests, and found that it would
I have MS Test unit tests that ensure that an Exception is thrown when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.