cake-build / cake-build/cake

Debug log listener when debugging cake from VS (attached process)

Open
#1,712 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

I am currently trying to attach a debugger to the Cake process in order to debug an add-in. I've chosen the full VS approach (since that's where I am developing the extension), but the logging is not being written to the output window of VS which is not as convenient as it could be.

I think it should be fairly easy to redirect logging to the output window *if* a debugger is attached. At first I thought to use `Debug.WriteLine`, but since Cake is not being built in debug mode, this will probably not work.

I'll try to think of some other ways, but for now I just want to open this ticket so we can discuss this together.

Contributor guide

Open the contributing guide

Research direction

The issue does not name a file, test, or logging entry point. Start by tracing Cake's existing logging while attached to a Visual Studio debugger and evaluate how debugger-aware output could work; done means Cake logs appear in Visual Studio's Output window without requiring a debug build.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.