How to debug generator issues? #1787
-
For one of my projects the generator throws this warning message: How do I find out more details? Can I get a stacktrace or attach a debugger somehow? I captured a binlog, but it does not seem to contain any additional details: I am setting: <CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel>
<CsWinRTEnableLogging>True</CsWinRTEnableLogging> but I can not find any log.txt file. I am sure I am doing something wrong, how can I find out what? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You might be able to attach a debugger to one of the Rosyln processes. But I will look at adding some logs or diagnostics when exceptions get thrown in the source generator and then you can try that out. |
Beta Was this translation helpful? Give feedback.
-
Latest update fixed my issue. Thank you @manodasanW and team! |
Beta Was this translation helpful? Give feedback.
You might be able to attach a debugger to one of the Rosyln processes. But I will look at adding some logs or diagnostics when exceptions get thrown in the source generator and then you can try that out.