1

In my NuGet Package where SourceLink is enabled and working I have a ServiceBase class which contains async methods for Get, Post, Update etc.

Stepping into the constructor of the base class works fine, also stepping into any synchronous methods.

If I call the Get method like this:

var hotel = await Get<Car>(new Uri("http://cars/api/car/1"));

I am not able to step into that method. (Where the implementation of async Task <T> Get<T> is inside the base class.)

This only occurs if the NuGet Package is built in release mode. Is this a optimization effect?

Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
Matteo
  • 232
  • 3
  • 17
  • If it's built in Release mode you won't have the debugging information. You can only really debug when built in Debug mode. – Rob Sedgwick Jul 21 '17 at 08:41
  • @RobSedgwick, Release builds have optimizations that Debug builds don't have. Debug builds also have a lot of `nop` instructions in order for us to put breakpoints on curly braces and other places. But Release build can have debugging information. I always deploy pdbs with my release builds. – Paulo Morgado Jul 23 '17 at 23:02
  • @Matteo, are you packaging the pdbs when building in Release mode? – Paulo Morgado Jul 23 '17 at 23:02

0 Answers0