Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExecutionTimer.cs not found when stepping into code

Tags:

I am writing some tests using XUnit framework and have to use some external code referenced through a dll.

When I try to step into the method call, helper.GetEntity(), I get the following window and the execution exits.

[Fact] public void PassingTest() {     var datapointJson = File.ReadAllText(@"sample.json");     dynamic datapointObject = JsonConvert.DeserializeObject(datapointJson);      // This is referenced from a different project in the same solution.     var helper = new Helper.Actions();     var studentEntity = helper.GetEntity("tom"); } 

Execution.cs not found

Does anyone know why this is happening?

like image 794
Codehelp Avatar asked Jan 05 '18 09:01

Codehelp


People also ask

How can I see Call Stack in Vscode?

To open the Call Stack window in Visual Studio, from the Debug menu, choose Windows>Call Stack.

How can I see my Call Stack?

View the call stack while in the debugger While debugging, in the Debug menu, select Windows > Call Stack or press ctrl + alt + C . A yellow arrow identifies the stack frame where the execution pointer is currently located.


1 Answers

(posting @camilo-terevinto's comment as answer)

Turn on 'Enable Just My Code' in Visual Studio | Tools | Debugging | General.

enter image description here

like image 123
pauldendulk Avatar answered Sep 28 '22 12:09

pauldendulk