Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

c# Console windows in a WPF application

Posted on 2011-03-09
2
Medium Priority
?
1,201 Views
Last Modified: 2013-12-17
I've searched the internet and found that it appears to be impossible to open a console window with a windows WPF application.  I'm hoping that someone knows a work around or knows another way to do this.

I've got an application that I want to debug.  In programming with linux or many other languages I would just put in a printf and dump variable information to let me know how far an application has made it.

In my app I use a background worker process and it works great in my lab and a couple of other places but at one location it just sits.  My ideal world would be to open a console window and dump information from the process to the window as it goes.  

Since I'm using a background worker, it's not easy to even put in a label and update the label with what is going on.  And since I don't have visual studio on this production server I can't compile and run it there and access breakpoints.

Anyone have an idea on how I can debug in this environment?

Thanks.
0
Comment
Question by:sej69
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
athomsfere earned 2000 total points
ID: 35085038
How about use WriteLine a StreamWriter to write the output to a txt file? After the hang or crash just open the text file and look?

Seems to be the easiest, straightforward thing I can think of, with very similar results.
0
 

Author Closing Comment

by:sej69
ID: 35087399
Awesome.  That was a GREAT idea.  Helped me find my issue.  Thanks again!
0

Featured Post

Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
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!
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

688 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