Tuesday, April 17, 2012 4:03 PM Jim Wang

Debugging Node (node-inspector) in the Azure emulator

One thing I ran into this week is trying to run node within the Azure emulator, giving me access to the emulated versions of Azure table storage, queues, and blob, while also having debugging running.

If you are familiar with the Azure Node.js SDK, you’ll know that you can launch your role using the Start-AzureEmulator Powershell command. Unfortunately, this command doesn’t seem to have any debugging options.

Fear not: there’s an easy way to get this up and running with node-inspector: you can open up ServiceDefinition.csdef, where you should see the following line:

<EntryPoint>
  <ProgramEntryPoint commandLine="node.exe .\server.js"
       setReadyOnProcessStart="true"/>
</EntryPoint>

So if you already have node-inspector (if not, run “npm install node-inspector –g”), you can launch it with the “node-inspector” command, and then change this line in ServiceDefinition.csdef to be:

<EntryPoint>
  <ProgramEntryPoint commandLine="node.exe --debug-brk .\server.js" 
      setReadyOnProcessStart="true"/>
</EntryPoint>

Then run Start-AzureEmulator. Happy debugging!

Filed under: , , , , ,

Comments

# re: Debugging Node (node-inspector) in the Azure emulator

Thursday, April 19, 2012 3:51 PM by Henry

nice to see an update

# re: Debugging Node (node-inspector) in the Azure emulator

Tuesday, May 15, 2012 7:03 AM by hollister

Hollister is the U.S. high-end casual clothing brand A & F (Abercrombie & Fitch)'s vice-line brand. Hollister is designed for 15 to 18-year-old boys and girls; the design concept is to reflect the Southern California beach surf style. And also the prices are much lower than A&F. we are impressed of the Hollister advertising. Under the lens of photographer Bruce Weber, young boys and girls in California vibrant interpretation of a different kind of grace!

# re: Debugging Node (node-inspector) in the Azure emulator

Tuesday, June 12, 2012 8:00 AM by abercrombie and fitch paris

Hollister advertising. Under the lens of photographer Bruce Weber, young boys and girls in California vibrant interpretation of a different kind of grace!

# re: Debugging Node (node-inspector) in the Azure emulator

Wednesday, September 05, 2012 4:59 AM by birthday

You composed something which men and women could recognize making it the niche interesting for all. I am keeping this kind of with regard to long term employ.

# re: Debugging Node (node-inspector) in the Azure emulator

Tuesday, October 09, 2012 2:45 AM by professor ratings

Doctor of philosophy rack consequently her label as the tutor. She's a good teacher with the Higher educatoin institutions in The state of michigan. The girl focused on specialized medical mindsets plus, as a result, is known as a shown health-related in the nation. The girl's major pursuits coaching can include: intro therapy, developmental therapy, public behaviors of youngsters, interpersonal devices; separation in addition to remarriage.

# re: Debugging Node (node-inspector) in the Azure emulator

Friday, October 19, 2012 2:12 PM by ugg boots

It's against the rules to handle the ball in soccer.How about a drink tonight? Me too.He inspected the car for defects.I heard some one laughing.Number 13 buses run much more frequently, don't they? Number 13 buses run much more frequently, don't they? It has be come much cooler.My false teeth are stuck to it.I know what you want

<a href="http://cheapuggboots.wellingtonwestcapital.ca" title="ugg boots">ugg boots</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Saturday, October 20, 2012 1:24 AM by uggs-bootsstore.blogspot.com

On being introduced to somebody, a British person often shakes hands.Neither you nor he is wrong.That's the latest fashion.I borrowed a notebook from Tom and I lent it to Marry.He paused for a reply.Their interest is listening to others.Their interest is listening to others.I'll be right there.I develop films myself.This way, he can kill two birds with one stone.

<a href="http://uggs-bootsstore.blogspot.com" title="uggs-bootsstore.blogspot.com">uggs-bootsstore.blogspot.com</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Saturday, October 20, 2012 3:52 AM by procheapuggboots.blogspot.com

He lacks courage.There being no one to help me, I had to do it all alone.Easy come easy go.We can't go out because of the rain.They are paid by the hour.How about going out for dinner?I'm single.It seems to me that be would like to go back homeWhat ever I said£¬he'd disagree.Have you ever driven a BMW?

<a href="http://procheapuggboots.blogspot.com" title="procheapuggboots.blogspot.com">procheapuggboots.blogspot.com</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Saturday, October 20, 2012 1:29 PM by cheapuggbootstop.webs.com

It's very kind of you to help me.See you.Any day will do.He has a nice sum of money put away.You need to workout.Are your grandparents still living? Are you sure you can come by at nine?Aren't you concerned about it? Time is money.I hope you enjoy your stay with us.

<a href="http://cheapuggbootstop.webs.com" title="cheapuggbootstop.webs.com">cheapuggbootstop.webs.com</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Saturday, October 20, 2012 7:46 PM by uggoutlet.moomfrvit.com

Not bad.I heard that you're getting marriedI've got to start working out.I'm glad to see you againYou are just in time.Can you imagine how much he paid for that car?I will be more careful.Let's have a beer or somethingHe looks very healthy.There are mice next to the refrigerator, under the sink and inside the cupboard!

<a href="http://uggoutlet.moomfrvit.com" title="uggoutlet.moomfrvit.com">uggoutlet.moomfrvit.com</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Monday, October 22, 2012 1:41 AM by uggsale.moomfrvit.com

On behalf of my company, I would like to welcome you here.He has a remarkable memory.Please let me check the bill.I'm looking forward to seeing youI can do nothing but that.The book is protected by copyright.The book is protected by copyright.I have no idea.He came by train.I'd like to get this film developed.

<a href="http://uggsale.moomfrvit.com" title="uggsale.moomfrvit.com">uggsale.moomfrvit.com</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Monday, October 22, 2012 10:32 AM by burberry trench coat

They have to work hard to support their family.He doesn't care about me.I'm On your side.The sudden barking frightened Clara.It appears to be a true story.It is more important to be healthy than bony slim.It is more important to be healthy than bony slim.You can call me any time.It is not so easy as you think.I'm afraid that it's not going to work out

<a href="http://burberrytrenchcoat.moonfruit.com" title="burberry trench coat">burberry trench coat</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Wednesday, October 24, 2012 7:25 AM by uggs cheap

There was a notice in the supermarket.I'll see you at six.I do want to see him now.This cellar room is very damp in the rainy season.None of your business!I hope we can see each other again some time.I hope we can see each other again some time.Those are watermelons.I was late for work yesterday.Did you hear about the new project?

<a href="http://uggs-cheap.webeden.net" title="uggs cheap">uggs cheap</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Friday, October 26, 2012 11:59 PM by Burberry Belt Sale

He thinks himself somebody, but we think him nobody.He seems at little nervous.May I ask some questions? The number 13 bus will take you to the hospital.I like all kinds of fruit.Not only did I know her, but I was her best friend.Not only did I know her, but I was her best friend.Did you enter the contest? Long time no see!The teams are coming onto the field.

<a href="burberry.2096909555.com/burberry-belt-c-2.html" title="Burberry Belt Sale">Burberry Belt Sale</a>

# re: Debugging Node (node-inspector) in the Azure emulator

Saturday, October 27, 2012 1:28 AM by burberrysunglasses.moonfruit.com

Do you have any suggestions for me? Take it easy.Everything has its beginning.In many countries, more and more companies are replacing people with computers.We just caught the plane.He hired a workman to repair the fence.He hired a workman to repair the fence.How are things going? I have a good idea!He is commonly supposed to be foolish.

<a href="http://burberrysunglasses.moonfruit.com" title="burberrysunglasses.moonfruit.com">burberrysunglasses.moonfruit.com</a>

Leave a Comment

(required) 
(required) 
(optional)
(required)