We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

VB.net exe - view Debug.print lines

rwallacej
rwallacej asked
on
Medium Priority
1,408 Views
Last Modified: 2012-06-27
I'd like to view the debug.print lines when running as an exe, just like you can view them in the IDE - can this be done and how?
Comment
Watch Question

Commented:
Download DebugView utility from here:
http://www.sysinternals.com/utilities/debugview.html

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
can this not be done without 3rd party tool?

Commented:
this is not 3 party tool just open the project and add the code in your current porject

Commented:
You want this outside of Visual Studio, so you must run some program, right?
DebugView is free tool which is used by all C++ developers. .NET debug lines are shown as well. Download link points to zip file with DebugView.exe and help file - pretty simple. Add you need is to run DebugView.exe and your program.

Author

Commented:
got called away, I'll look at these tomorrow. thanks
Why don't you write them off to a text file ?

I place the debug.pring statement in a proc, then call the proc.
So if your running your app as an exe, you can change the proc to write to a textfile instead.

Commented:
Can't you attach to the process while it's running?  I've done this to help debug a process that i wrote recently in VB.net.  All you do is make sure the process is running.  Open your .NET development project for the compiled exe.  Place in your breakpoints.  Click on Tools, then select "Attach Process".  Then find the name of the exe in the list of processes and click "Attach".  Wait a bit and a break point should light up.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.