Solved

How to attach VS debugger with Process.Start

Posted on 2008-10-28
1
921 Views
Last Modified: 2012-05-05
My scenario is I am building an xUnit.NET Runner to work without Resharper or TestDriven.NET.

To do this I am using Process.Start as below:

            Process process = new Process();
            process.StartInfo.UseShellExecute = false;
            process.StartInfo.RedirectStandardOutput = true;
            process.StartInfo.RedirectStandardError = true;
            process.StartInfo.CreateNoWindow = true;
            process.StartInfo.FileName = "xunit.console.exe";
            process.StartInfo.Arguments = dllName;
            process.d
            process.Start();

            string output = process.StandardOutput.ReadToEnd();
            return output;

I want to be able to attach the Visual Studio debugger to my DLL. The DLL project is already a reference in the solution. How do I do this?

0
Comment
Question by:craigdev
1 Comment
 
LVL 10

Accepted Solution

by:
jinn_hnnl earned 500 total points
ID: 22820370
Have you try:
System.Diagnostics.Debugger.Break(); ?

If the DLL project has refered to the current, it should jump in, shouldn't it?

JINN
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question