Home > Net >  VS2019 can't change the Windowns desktop application for the console application?
VS2019 can't change the Windowns desktop application for the console application?

Time:05-25

I a Windows desktop application, based on the WPF, debugging need, want to print some information on the console, so as not to set breakpoints view
But after modify preservation, see again and be changed back

CodePudding user response:

Don't messagebox. Show () can also be

CodePudding user response:

reference 1/f, heap code of Einstein's reply:
messagebox. Show () don't you can also


MessageBox. Show out the modal dialog, the program hangs
What I need is the information in the application process, but don't hang up the program
Model such as a consumer, producer, I want to observe product queue length, if the program for playing a MessageBox hangs, it also depends on what

CodePudding user response:

The Console. Write to print out information can see the output window, don't have to change the project type, output window can be in the "view" - "output" on or off

CodePudding user response:

Didn't try this kind of practice
Either enter the debug view the output
Either a formal runtime log
  •  Tags:  
  • C#
  • Related