visual studio 2010 - Debug single role instance with Azure Compute emulator -


i'm building application run on azure. visual studio solution contains multiple azure role projects. when debugging locally, use azure compute emulator.

to start debugging, follow these steps:

  1. i right-click on azure project , click set start project.
  2. i press f5 start debugger.

what happens emulator/vs2010 launches both web roles , worker roles, if i'm interested in debugging single worker role @ moment. when writing background-processing code in worker role, i'm interested step through code without starting web role, launch internet explorer , on well.

is there convinient way make debugger launch 1 of role instances , not of them?

i'm thinking of creating separate project in solution of type console application, load same assemblies in worker role , execute same code.

the emulator (similar azure itself) works on concept of "cloud service". when launch w/ debug, going launch whatever defined in cloud service (.ccproj) project. mimics azure 100% why occur, can see scenario helpful.

few options, based on needs.

if need test azure-specifics (aka has run in emulator)

  • create second solution file, create new cloud service in here, add project. i option because projects/roles remain untouched.

  • what stuart suggested before me, create second cloud project, set startup, run that.

  • similar above, create second project, don't worry startup. can right click on project, go debug , select start w/ debugging , achieve f5 without binding f5 solution

if dont need test azure-specifics (ie testing role)

  • right click on role's project, debug, start debugging this way whole solution remains intact , testing logic

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -