javascript - Debugger not working in visual studio - Stack Overflow

admin2025-04-18  0

My debugger stopped working as expected in Visual Studio Community 2015 (Update 1).

The solution I'm working on has the following architecture:

  1. "Query" project - written with angularjs 1.4
  2. "Login" project - written with angularjs 1.4
  3. More back-end projects - written with c#/web-api

I run the Query project, it checks for session and redirect to Login. After the login is successful it makes another redirect back to the Query url. Until yesterday I had no issues debugging the whole solution from VS directly. Now the behavior is that the first time I run the "Query" project, my breakpoints get hit. After ing back from Login, no breakpoint is hit.

Both client-side projects are hosted using IIS Express.

Things I tried until now:

  • clean, build, rebuild the solution;
  • attaching to process from VS. I attached to all IIS Express processes but with no luck;
  • closing VS and deleting my bin and obj folders from all projects;
  • restarting the machine;

Also good to mention that I have set in web.config:

 <pilation debug="true"></pilation>

Any hint or idea is highly appreciated.

My debugger stopped working as expected in Visual Studio Community 2015 (Update 1).

The solution I'm working on has the following architecture:

  1. "Query" project - written with angularjs 1.4
  2. "Login" project - written with angularjs 1.4
  3. More back-end projects - written with c#/web-api

I run the Query project, it checks for session and redirect to Login. After the login is successful it makes another redirect back to the Query url. Until yesterday I had no issues debugging the whole solution from VS directly. Now the behavior is that the first time I run the "Query" project, my breakpoints get hit. After ing back from Login, no breakpoint is hit.

Both client-side projects are hosted using IIS Express.

Things I tried until now:

  • clean, build, rebuild the solution;
  • attaching to process from VS. I attached to all IIS Express processes but with no luck;
  • closing VS and deleting my bin and obj folders from all projects;
  • restarting the machine;

Also good to mention that I have set in web.config:

 <pilation debug="true"></pilation>

Any hint or idea is highly appreciated.

Share Improve this question edited Jun 28, 2016 at 8:03 Marian Toader asked Jun 28, 2016 at 7:43 Marian ToaderMarian Toader 811 silver badge7 bronze badges 1
  • 1 uload the project and reload, or exlude the file from the project and include it,,, – Arun Prasad E S Commented Jun 28, 2016 at 7:58
Add a ment  | 

3 Answers 3

Reset to default 2

After trying more different solutions, the only thing that worked in my case was to unload/reload the project. Also, now the breakpoints that I set before the application runs are no longer getting hit, but if I set them after the application started then they work fine.

I can suggest some Stack Overflow answers related to this issue, maybe it helps:

  1. New project and just importing the files into it: Upgrade to Visual Sudio 2015 and now can't hit break points in debuging

  2. Manual check of the Symbol Load Information: Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."

  3. Incorrect configuration selected in the debug menu: Visual Studio breakpoints not being hit

In my case (Vs2019) the Microsoft Symbol server was causing the issue.

It was not being able to attach Local IIS.

Enabling only the NuGet Symbol server and disabling the Microsoft worked for me

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744964659a277122.html

最新回复(0)