Can Visual Studio 2013 debug clientside javascript in a NodeJs Web Application - node.js

Debugging a ASP.NET WebAplication in Visual Studio 2013 gives the possibility to debug the clientside javascript files in Visual Studio 2013. Isn't this possible with a NodeJs Web Application in Visual Studio 2013 ?

It can be done using IE as the browser and using node.js tools for Visual Studio, but I have not been able to debug through from client to server side code like you can with an ASP.Net project :o(
Anyhow, here is how you do it:
In IE, enable script debugging by going to Tools > Internet Options > Advanced Tab and clearing the "Disable script debugging flag". I think you have to restart IE for this to take effect
In VS2013 start your node.js project without debugging (Debug > Start without debugging or CTRL-F5)
In IE, attach to the VS debugger (View menu > External Script Debugger > Open. This should create a window that lets you attach IE to your instance of VS2013.

Related

Outlook app - Debug in non-IE browser

I am creating an Office App (Outlook addin/web-app). While debugging, the app is always launching in IE desktop version. I want to start debugging the app in non-IE browser - FF, Chrome. I couldn't find any settings related to this within the project. How can I achieve that?
Any help will be appreciated.
Thanks.
Microsoft Visual Studio: Currently you will be able to debug you project in Visual studio 2015 or later only using IE browser. By "debugging in VS" I meant you set breakpoints directly in IDE for your JS code. As of VS2017 RC release you will be able to debug your project in two browsers (IE and Chrome), even today, Edge coming as well. Please see Client-side debugging of ASP.NET projects in Google Chrome.
If you need just to start your project in yet another browser (Chrome, Edge, Firefox) you need to use this article to switch your Browser in IDE: Testing with an Alternate Browser. After you switch to another browser, please restart VS; I have tried this myself and it works, your project will be started in the browser of your choice by pressing F5. With this approach you would need to debug your code with development tools of this browser (F12) or some 3rd party extension.
Visual Studio Code: (VS community edition) Looks like have support for debugging your code in Chrome and setting up break points directly in VS Code IDE. Please refer to Introducing Chrome Debugging for VS Code. You would require to install VS extension as described in the article.
Other options: If you are using yet another Tool please refer to the following blog about different methods of debugging office add-ins: The many ways of office web add-ins debugging
I finally figured out the solution. Select the Manifest project, hit F4 to open Properties window. Choose your preferred Start Action. Here is a screenshot.
Start Action image

Visual Studio 2013 & Node.js: Stop debugger from opening chrome

How can I stop Visual Studio from opening chrome when I begin debugging my node.js app F5? The http request chrome sends crashes my app, which is very annoying.
Project settings
I removed the value under Node.js port option.

How can I debug my unity project using Visual Studio 2012?

1) I set my preferences to open up Unity .cs files using Visual Studio 2012
2) I came across this: https://visualstudiogallery.msdn.microsoft.com/7ab11d2a-f413-4ed6-b3de-ff1d05157714
and I download and installed VS2012 Tools for Unity
3) Now I'm stuck here, when I try and run/debug a single .cs file in VS, I get this exception:
"A project with an Output Type of Class Library cannot be started directly. In order to debug this project,add an executable project to this solution which references the library project. Set the executable project as a startup project."
I'm not sure what that means and how to proceed. I'm not sure how to sync up Unity with Visual Studio.
Anyone?
Btw, I have Unity free version 4.6.1 installed and Visual Studio Premium 2012.
Thanks
http://unityvs.com/
Once you have installed the correct version for your VS version you need to open your unity project (in unity) and add the VS tools package ...
Assets > import package > Tools for unity 20xx
Then you need to set your default editor in ...
Edit > Preferences > External Tools
Then when you click on scripts in unity it should open them in VS.
Now from VS you should have the option to attach the unity debugger where it normally says "debug" in the toolbar.
After attaching your debugger to unity run your game by hitting play in unity and it should hit any breakpoints you have set in VS.
All should magically work.
Close visual studio and Unity.
Download and install Tools for unity 2012 and links to other versions can be found here:
https://visualstudiogallery.msdn.microsoft.com/7ab11d2a-f413-4ed6-b3de-ff1d05157714
Open Unity 3d
Then like Wardy said:
Assets > import package, Select "Tools for unity 2012"
Edit > Preferences > External Tools, select 2012
I had the same error massage using unity 2018 & visual Studio 2017. Frankly, closing VS and opening it after double clicking on a unity script (inside unity) solved it.

Visual Studio 2015 Preview - Keep IIS Express Running

I'm trying to get a decent development experience with Visual Studio 2015 Preview.
To do that I'd love to have my IIS Express running all the time instead of requiring me to start debugging.
Anyway to do that? Tried command line:
IISExpress.exe /path:pathmyproject/wwwroot
IISExpress.exe /site:SiteName
and
IISExpress.exe /path:pathtomyproject
First two give me:
Unable to locate project.json
Third one
HTTP Error 403.14 - Forbidden
Not exactly an answer, but if you can view in browser instead of Debug.
The command for view in browser is: CTRL+ SHIFT + W (or right click on project and select View -> View in broswer.)
IIS Express will start but will not close when you exit your browser.
Hope this helps, this is what I do (specially now that build/compile is no required with roslyn).
Similar to VS 2013, if you disable Edit and Continue IIS Express will continue to run when you stop your debug sessions.
Open the menu item Tools/Options, look for the Debugging/General option. Scroll down and uncheck "Enable Edit and Continue"
in the Debug menu > Start without debugging (Ctr + F5)
Visual Studio 2015 Update 3 adds the support to keep IIS Express Running
For ASP.NET Web Application projects, when "Enable Edit and Continue" checkbox is unchecked, the IIS Express process will no longer stop working every time you stop debugging.
Visual Studio Update 3 RC Release Notes
"Enable Edit and Continue" checkbox does not exist in visual studio 2015 update 2!this is best solution for this problem
I just unchecked Edit & Continue option under project properties -> Web -> Debugger.
I'm using VS2015. It is working for me.
This problem occurred to me when trying to run a cloned project. The solution that worked to me was installing Microsoft.NET Core 1.0.1 VS 2015 Tooling Preview 2.
Go to Tools --> Extensions and Updates --> click Updates
Look for Microsoft.NET Core 1.0.1 VS 2015 Tooling Preview 2 and install the update if it is available.

SharePoint editing for Web test, change pages properties using Visual Studio Test Suite

I'm using Visual Studio 2008 (SP1) to create a web test that will allow me to edit a page using EditForm.aspx.
I am trying it using fiddler and the recorder. I have managed to get some tests to run, but they do not change the properties.
Does anyone have any tips on how to do this?

Resources