complog icon indicating copy to clipboard operation
complog copied to clipboard

Support including --attachDebugger in RSP files

Open jaredpar opened this issue 4 months ago • 3 comments

Consider adding a flag to replay and export that puts --attachDebugger into the RSP files.

jaredpar avatar Aug 03 '25 22:08 jaredpar

@333fred you were asking for this option. I was starting to think about implementing it today and wondering if it was the right answer. The compiler is always loaded into memory. Shouldn't I just add a --attachDebugger argument to complog directly vs. emitting it into the RSP? Or is there a case I'm missing?

jaredpar avatar Aug 03 '25 22:08 jaredpar

I was actually thinking of having complog have an argument to a source location for a local roslyn repo, and have it do a build and load of that csc. But I don't see an issue with having complog have an --attachDebugger option as well.

333fred avatar Aug 04 '25 05:08 333fred

Now that replay supports --compiler that could be an option to implement. Today that takes a compiler location but it could be updated to take the compiler source and then build + consume one.

jaredpar avatar Aug 04 '25 05:08 jaredpar