Closed ghost closed 3 years ago
The project already supports SourceLink for Github, so this should not be a problem.
As well as the source and sourcelink the pdb is embedded in the dll so it should be debuggable?
That is very strange... Every time I've tried to debug I always get 'could not resolve method' and my breakpoints are never hit. One thing though is that I'm using it with Unity so there's possibly a chance of that causing some issues.
The main reason I've been trying to debug is because whenever I try to .Demistify()
exceptions nothing changes, and I was trying to figure out why, Some of your other code works though (like new EnhancedStackTrace(oldStackTrace)
and stringBuilder.AppendTypeDisplayName()
).
@EternalClickbait what are you using for debugging? Visual Studio, Rider? And what version?
@EternalClickbait what are you using for debugging? Visual Studio, Rider? And what version?
Rider, 2020.2.4, I'm usingBen.Demistyfier 0.1.6 (what my package manager automatically game me) @bruno-garcia
Update: I'm unable to break at most lines. The only 2 I'm able to are the beginning/entrance of the method, and the start of the try
block.
Update 2:
The debugging and breakpoints are.....funky. The editor breaks but at the wrong locations:
I set the breakpoint at the entry of the try
, it supposedly broke at the entrance to System.Diagnostics.StringBuilderExtentions.AppendDemystified(this StringBuilder builder, Exception exception)
, but the stack shows the ctor
for a System.Diagnostics.ValueTupleResolvedParameter
. It also repeatedly breaks multiple times, even when the method is called only once (I've made sure of it).
@bruno-garcia @benaadams @samtrion
I think it was probably an issue caused by an old version of this library. I updated Rider to 2020.3.0 which did nothing, but as soon as I updated the library to 0.3.0, I immediately got my nice lovely stack traces back, and was able to debug properly. I'm now going to close this issue as I believe it is solved.
I have to debug this library and all I have is the
.dll
(no.pdb
, so I'm unable to debug in rider). It would be nice if thepdb
came with thedll
so I don't have to build it myself to be able to debug it.