Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio 2015 update 2 RTM and RC debugging context not available

Update 1:

After Updating visual studio to version 2015 update 2 RTM the problem still exist.

Update 2 patch available 4/12/2016 :

Thanks to Patrick Nelson.

a patch has been released

You can download the patch here.

Update 3 8/16/2016:

Latest vs 2015 update 3 KB3165756 has the same problem do not update

Version Used:

Latest stable version on visual studio update 2 rc

Disabled all my extensions and also restarted my all settings

Steps to Reproduce:

  1. Install visual studio update 2 rc
  2. Create new project using asp.net mvc core template
  3. Debug the app

Expected Behavior:

To be able to debug the asp.net application enter image description here

Actual Behaviour:

I can't explore context of variable inside visual studio editor or immediate windows i get the following error in immediate windows

enter image description here error CS0103: The name 'myvariable' does not exist in the current context

like image 306
Amir Jalali Avatar asked Mar 29 '16 12:03

Amir Jalali


3 Answers

using trial and error method i found a workaround for know that will bring back context debugging.

from tools >  options > debugging > general then enable

enter image description here

like image 80
Amir Jalali Avatar answered Nov 07 '22 04:11

Amir Jalali


This is a bug that was introduced in Visual Studio 2015 Update 2. Essentially the debugger is unable to inspect local variables in dynamic modules. We released a hotfix for it today.

You can download the patch here. Documentation for the patch is here. Let me know if the patch does not fix your particular scenario.

like image 17
Patrick Nelson - MSFT Avatar answered Nov 07 '22 06:11

Patrick Nelson - MSFT


and also (Use Managed Compatibility Mode - Enabled) please make sure json configuration file has this sections

"frameworks": {
    "dnx451": { }, 
    "dnxcore50": { }
},
like image 2
Gencebay Avatar answered Nov 07 '22 04:11

Gencebay