Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 18th, 2011, 02:01 AM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2007
Location: , , .
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default How to Debug a Console Application which starts with an Argument.

Hello everyone,
I have a Console Application which is started with an argument (it accepts an XML file and processes it).

I check the args.Lenght to find out if an argument was supplied or not and display messages appropriately.

This application is part of a workflow in which another application calls this Console App with the XML file as argument.
When this happens VS does not step into the code for debugging. The exe behaves as standalone. The same thing happens when the exe is called from the command line.

I know that a Argument can be set in the Project Properties, but then VS will alway load the same XML file, which beats the purpose of Debugging.

Is there a way for VS to start in debug mode when this Console App exe is called either by an external App or when executed through the DOS Command Line.

Regards
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sys.Debug messages not appearing in Output console Lee Dumond Ajax 0 May 5th, 2009 03:38 PM
Open a C# application while window starts jklanka General .NET 2 October 30th, 2007 09:24 AM
Console application but no Console gamotter C# 2 August 22nd, 2007 11:41 PM
run an application automaticaly when server starts sureshrgsl Servlets 1 April 16th, 2007 11:25 PM
Application starts again sarvesh189 Forum and Wrox.com Feedback 2 May 25th, 2005 02:07 AM



All times are GMT -4. The time now is 04:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.