Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I debug my code in Configure method? #35

Closed
urbanmichal opened this issue Apr 24, 2017 · 3 comments
Closed

How can I debug my code in Configure method? #35

urbanmichal opened this issue Apr 24, 2017 · 3 comments
Labels

Comments

@urbanmichal
Copy link

Hi,

I would like to add breakpoint in some line in Configure method. How could I debug it?

@pavel1269
Copy link

You can use System.Diagnostics.Debugger.Launch()

@pavel-b-novikov
Copy link
Member

pavel-b-novikov commented May 13, 2017

Sorry, didnt noticed your question.
You can use Console.WriteLine within configure method and examine msbuild's logs. To elevate velocity of MSBuild's output go to Tools - Options - Projects And Solutions - Build and Run - there will be 2 dropdowns with verbosity levels. You need to select Detailed. After that you will see all the Console.WriteLine output in your VS's Output window.
OR you can add path to your MSBuild.exe to your PATH env. variable and build your .csproj from command line using msbuild.exe MyProject.csproj /v:d > buildlog.txt. Then you can examine buildlog.txt file for error and outputs.

Another option is to run RT exporting process from outside of console tool. To do that, you can write code that is pretty similar to code from bootstrapper. I have created small gist to illustrate it.

@urbanmichal
Copy link
Author

Hi, great, that's the info I needed. Good job guys, thank you :-) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants