I am working on Dotnet Core + Angular application with Visual Studio 2019. After publishing code in release mode and deployed on IIS. When I changed the code to debug and tried to debug something the breakpoints are not getting hit on any controller. Does anybody ever faced this problem, it would be helpful to have any solution on this. Here is my project properties
Visual Studio 2019 break point is getting hit
This is indeed a very strange behavior and I suggest you could try these suggestions to troubleshoot your issue:
Suggestion
1) Right-click on your project-->Properties-->Build-->Advanced-->change Debugging Information to Full.
2) make sure that you use IIS Express with Google Chrome or change to use IE to debug your project
3) Tools --> Options-->Debugging-->Symbols--> select Microsoft Symbol Servers-->Click Load All Symbols
4) close VS Instance, delete .vs hidden folder under solution folder, bin , obj folder and then restart your project to test again.
Update 1
Based on your issue, JS sent request to Core and could not enter the breakpoint, you can try these steps:
1) enable option Javascript Debugging for Asp.Net(Chrome,Edge and IE) under Tools-->Options-->Debugging-->General
2) If you try to debug js on cshtml, you should move these js into a single javascript file and then reference such js file in cshtml. You can refer to this link.
Hope it could help you.
Related
I have blazor wasm application that has been working with the debugger for several months. This problem started yesterday. It is getting errors like on the ones below if I have breakpoints set in vs 2019 16.10.1 and I press f5 for debugging.
So When I have no breakpoints in the entire program the first page loads correctly. When the first page loads (3 tiles on the page) it loads successful and then I set a breakpoint on another component( it gets two errors per one breakpoint).... it gets the error just by clicking the breakpoint in the VS 2019 source..(it is interactive) . It doesn't matter if I use iisexpress or kestrel. I've uninstalled vs 2019 and reloaded. (my thought was did I turn something on in vs 2019 that I dont want). . I've deleted .vs folder in the solution of the project thinking it is something in the solution . Suggestions are welcomed. I've report this also (on the github.com/aspnetcore)
I had some help from microsoft on this. Currently, blazor wasm .net 5 does not allow embeded pdb so make sure it is set to the pdb to portable option in the solution.
I am not able to debug the Sharepoint project in Visual studio solution even after attaching W3workerprocess. please help me on this.
I cheked project properties, website URL is also correct. but still i am not able to debug the solution
Have you made any changes that's not deployed/copied to GAC/BIN? If not, copy to GAC/BIN using CKSDev (VS tool) and then do a IIS reset (I think that CKSDev handles this also). Then refresh your page and then attach the process again. Also there's often multiple w3wp.exe you can attach to. I usually select all those.
I've downloaded the latest Visual Studio 2015 CTP but am unable to get auto compilation to work. I'm trying this,
Create a web application in visual studio.
Launch it web ctrl+f5
Change some cs file
Hit f5 in the browser
Observe the change
And nothing happens. I still need to go back to VS and build to see any changes.
Anyone knows why and what I'm missing?
I have read a few threads here on StackOverflow and in all of them the problem seems that the debugger is attached. But that's not the case for me, I start the application either by ctrl+f5 or Debug -> Start without debugging.
I was able to figure out why it wasn't working. I was running Windows 10 in a VM (using Parallels on a mac), and the created project was saved in a shared drive with the path something like this,
\psf\Home\Documents\Visual Studio 2015\Projects...
And I guess the file watcher wasn't able to detect file changes and therefore the auto compile wasn't working. I have now created a new project and saved it on c: and the auto compile is working!
I have a really weird problem, be interested in some pointers
We have a website that we have coded from Visual Studio 2003 -> Visual Studio 2010. We are now looking at moving to 2013.
The website is in IIS, when I navigate to it using IE it works. When VS2013 is -open-, not running, but has the project open we get a weird effect where the contents of the website gets duplicated by 3, its as if there are 3 iframes on the page, all with a copy of the same web site.
I close VS2013 and it goes back to normal
So, just to be clear, we don't even have to run the web site from within VS2013, just the project being open is enough to cause the weird effect
We use subversion as as far as I can tell no files have been modified when VS2013 is open
Any suggestions?
Thanks
It's Browser Link that's doing it! If you switch off Browser Link it works.
The source shows some extra script entries before the final tag but other than that the whole source is duplicated.
We don't need Browser Link and I don't have reflection capabilities on Asp.Net source so as to why that's for some one else to determine, I noticed a few people complaining when I searched on it so it may be something that just gets fixed in a future version
Does any one know how to enable in page JavaScript script tag debugging?
In vs2012 i can go to the page in visual studio which is running in the debugger and create a break point however in vs2013 i get "A breakpoint could not be inserted at this location"?
Thanks
try to keep your scripts in separate files and put the breakpoints in that files. I had the same problem but when I moved java scripts from my views to script files I was able to debug. It may not be a solution but at least you should be able to work.
There was a known issue in Visual Studio 2013 that caused breakpoints to not work correctly inside script blocks. A fix was made and is included in the recently released Visual Studio 2013 Update 2 RC, which you can install from http://www.microsoft.com/en-us/download/details.aspx?id=42307.