Solved

How to attach VS debugger with Process.Start

Posted on 2008-10-28
1
919 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
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!
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now