Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 debug in a fixed port

Is it possible to choose a fixed port for the Visual Studio 2010 debug webserver?

like image 455
Farinha Avatar asked May 27 '10 11:05

Farinha


People also ask

How do I change the Debug port?

You can configure this from either the command line or the remote debugger window. In the remote debugger window, click Tools > Options, and set the TCP/IP port number. On the command line, start the remote debugger with the /port switch: msvsmon /port <port number>.

On which port number the debugger can be set?

To assign the Debugger a different port: Click Tools > Options > Debug. Assign a new port number in the Port field or select Pick a Port Number Between Min and Max Automatically and assign a range of ports for the Debugger to use. You can select a port between 5001 and 32000 or set a range between 5001 and 32000.

How do I change the Debug port in Visual Studio 2019?

Here is a fast recipe on how to manually change the port number to whatever number you want: In Solution Explorer, right-click the name of the web application and select Properties. Click the Web tab. In the Servers section, under dropdown selection for IIS Express, change the port number in the Project URL box.

How do I find my localhost port Visual Studio?

For me, I was able to find it with the following steps in Visual Studio 2017: Right click on the web project, then click Properties. Click on the Debug tab. Under the Profile IIS Express, you will find the port at the App URL box.


Video Answer


2 Answers

If it's similar to VS2008, you can do the following to fix the port number:

  1. Click on the web site project node in Solution Explorer
  2. Hit F4 to bring up the properties tool window
  3. Set "Use dynamic ports" to false
  4. Set "Port number" to whatever you need
like image 192
Chris Schmich Avatar answered Sep 24 '22 03:09

Chris Schmich


Should appear as an option in the web project properties, 'Web' tab. By default its set to auto-assign but theres an option to set a specific port.

like image 40
Mark Storey-Smith Avatar answered Sep 23 '22 03:09

Mark Storey-Smith