How to debug external code without going into the Thread.cs file for await calls?

Answered

When I have debug external source on, I don't want to go into the Thread.cs when I step into a call that has "await". How do I skip over certain files or disable this part when debugging?

1
3 comments

Hi, Jonathan.

Thank you that contacting us.

Which Rider version do you use? It seems, that the issue has already been fixed in 2018.1. 

If the problem remains in your case, could you please provide a sample solution or a code example?

 

Kind Regards,

Sofya

0
Avatar
Permanently deleted user

Hi I am still running into this issue with 2018.3.4 below. Debugging external code will not go into the Thread.cs call when the class is something that I did not implement. However if the method is something that is implemented in my solution (i.e a method in the same class) then it will try to debug the Thread.cs class.

 

using System.Net.Http;
using System.Threading.Tasks;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.DataModel;

namespace TestingStuff
{
class Program
{
static async Task Main(string[] args)
{
await Stuff(); // stepping into this will go into Thread.cs
}

private static async Task Stuff()
{
var client = new HttpClient();
var resp = await client.GetStringAsync("https://www.google.com"); // this will not go into thread.cs

var context = new DynamoDBContext(new AmazonDynamoDBClient());
var obj = await context.LoadAsync<object>("hi"); // this will not go into thread.cs
}
}
}

 

JetBrains Rider 2018.3.4
Build #RD-183.6092.12, built on March 4, 2019
macOS 10.14.3

0

Hello Jonathan!

I reproduced the described problem and created a ticket.

Thank you for letting us know about it.

 

Kind regards,

Sofya.

0

Please sign in to leave a comment.