Debugging in WebStorm vs Visual Studio - webstorm

For the longest time I have not been able to debug in WebStorm and I am wondering if I am going about it wrong. When using Visual Studio to debug a C# application I set my breakpoint and click the green triangle to start/debug my web application.
This is also the way I have been attempting to debug Angular applications in WebStorm. However, my breakpoints never seem to be hit. So today I tried (quite by accident) clicking the green triangle in WebStorm to start my Angular application as normal (launching via webpack) and then after it loaded I clicked the green "bug" icon. I then found that when navigating through my angular application my breakpoints were hit.
then
Was I doing this wrong the whole time? I was thinking that it was just one click as in Visual Studio.

You found it! Yes, you have to click the bug icon to get breakpoints to work.

Related

Visual Studio 2017 is debugging in a new window instead of a new tab and Stops debugging if i close that window

I have just reinstalled Visual Studio 2017 enterprise edition and have ran into a strange problem.
When I debug in Chrome it opens a new window instead of a new tab and if i then either close the window or try to move that tab into my other window Visual Studio stops debugging.
I have checked to see if the "Enable JavaScript Debugging for ASP.Net (Chrome, Edge and IE)" is checked and it is not.
Does anyone know what would be causing this as it is very annoying and slowing down my work?
Uncheck also Enabled and Edit Continue checkbox.
This should solve closing issue but I couldnt find way to open in new tab instead of window yet.

dll of project is not present in Visual Studio 2017 Modules window

While debugging I ran into several problems using Visual Studio. I got break points not being hit because the code was being optimized behind the scenes, I disabled it. I got break points not being hit because I was using the RELEASE option on the properties of the project, I changed it to DEBUG. I got break points not being hit because the symbols weren't being loaded, all of a sudden I had to load them manually using the modules window. Now, I cannot perform the last step because one of my project doesn't appear on the modules window.
cannot find webservices project

Multi Device Hybrid App in Visual Studio 2013 Does Not Refresh / Crashes

I have created a multi device hybrid project in Visual Studio 2013.
I am having a few major issues:
1) Changes to my scripts do not appear unless I completely rebuild the application when I am using Ripple to view the project.
2) Pressing F12 in the Chrome ripple window causes Visual Studio to stop running the application. This seems very strange. It's like if I were to quit debugging on a normal webapp.
Output shows The program '[1] http://localhost:4400/index.html?enableripple=cordova-3.0.0-NexusGalaxy: WebKit' has exited with code -1 (0xffffffff).
Has anyone had these problems or know what might be causing them?
Both of the behaviors you describe are expected. Ripple is not automatically refreshed when you save your changes so you will need to rebuild and deploy for it to pick up the updates. Since only one process can use the webkit debugging at once, the VS debugging session gets disconnected when you use the debugging tools in Chrome.

Visual Studio Test Explorer window will not open

For some reason I can't open the test explorer window in Visual Studio 2012. I click Test->Windows->Test Explorer and nothing happens...
This problem may have been caused by recently uninstalling DotCover. I did this because my licence expired and I was having issues running tests without it (context menus weren't working).
Any suggestions or advice much appreciated!
Thanks.
In VS2012, Test Explorer has a bug in that the window doesn't get focus when you click Test > Windows > Test Explorer. Instead, the menu item has no effect unless the window was complete hidden, in which case it is displayed.
The bug means that if Test Explorer is collapsed with Auto Hide, the menu item does nothing. Check that Test Explorer isn't in an auto-hide tab somewhere off to the left or right (i.e. in a tab with text written vertically, like Server Explorer and Toolbox are by default).
Update: The bug is fixed in VS2013.
Window -> Reset Window Layout fixed the problem for me.
For me the fix was:
Focus on the test window by Test > Windows > TestExplorer
Using Win+Left / Right to move the window onto an active screen
> ┌┬┐
> Win├┼┤ + Left or Right key
> └┴┘
The same worked for the ReSharper Unit Test Sessions window.
Found this solution here, which is the only thing that worked for me.
Delete all files from this folder:
user\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
As a brutal fix I actually decided to reset all VS settings (not ideal as you lose all your custom settings like formatting and debugging preferences!).
To do this open up a cmd line and cd to the VS directory (mine was C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE) and type:
devenv.exe /ResetSettings
Hope this helps someone in the future...
This worked for me (VS2015):
Close VS instances.
Delete component model cache folder %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache . This
wipes out the MEF cache.
Run devenv /setup /ResetSkipPkgs ref. http://msdn.microsoft.com/en-US/library/ex6a2fad(v=VS.80).aspx
Start VS again and see if the problem goes away.
Source
I had the same problem; turned out it was the Corbis Route add-in that was causing an error in combination with the 'I hate regions' add-on, which caused the Test Window to throw an exception.
After removing both add-ins the window reappeared again after a reset of the VS 2013 window layout. (Windows > Reset Window Layout)
A short-cut for those who have lost Test Explorer somewhere !
Ctrl + Q (for quick launch)
You would notice the focus on a small text box on the top right of VS.
Type in "Test Explorer" and select the option that says Test> Windows> Test Explorer
I have VS 2015. I couldn't find my Test Explorer, even with Test->Windows->Test Explorer. I finally figured it was showing on the left instead of the right.

My ReSharper Gutter Icons for Unit Tests aren't showing

I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the MbUnit 2.4 ReSharper plugin installed, but it should be uninstalled now.
I did this to get them to show up again. Maybe it was an overkill.
Uninstall ReSharper
Uninstall Gallio
Delete %appdata%\JetBrains folder
Install ReSharper
Start Visual Studio
Close Visual Studio
Install Gallio
Start Visual Studio
I think the key was deleting the %appdata%\JetBrains folder, because there could have been some old plugin files in there.
Another really late answer here, but if you don't have Resharper Code Analysis enabled then the gutter icons won't show up. Had to help a teammate figure this out yesterday.
Maybe a bit long ago, but if someone stumbles on this question...
I had the same problem with Resharper 2016.2
Resharper -> Options -> Code Inspection -> Settings
In my case the project containing the unit test was listed in the "Files and folders" list under "Elements to skipp". After I had removed the project, the icon appeared again.
using Visual Studio 2017, fixed mine using the Code Analysis icon in the upper right corner of the code window missing the gutter test icons.
The analysis was suspended because of the large test file. Had to hit resume twice, then icons finally reappeared.
I've had this issue a number of times when doing clean installs. Sometimes the gallio-resharper plugin installs perfectly, sometimes it does not. I tried the steps above to no avail.
I found this link: http://confluence.jetbrains.net/display/ReSharper/Deploying+plugin
And did the following
Created a Plugins folder in "C:\Program Files (x86)\JetBrains\ReSharper\v5.1\Bin\"
Copied the resharper plugin files from GallioBundle-3.3.458.0.zip\bin\ReSharper into this folder
Suspended and resumed resharper in Visual Studio 10 by using the button in Tools|Options|Resharper
After this, the plugin got enabled.
I am running W7x64 professional.
Hope this can be of help to other people as well. :-)
Suspend and Resume Resharper may work. It was working for me.
Try the following steps, they worked for me,
Open the Resharper installer
check if any item is asking for repare, if yes then click on install.
Now open visual studio and go to resharper option
if the first option is "why dot cover is diabled", click on it.
and enable the dot cover by either taking the free trial or logging in with your resharper id.
It will take few seconds to refresh
You will get back those icons for running or debugging unit test.