10 stories
·
3 followers

Client-side debugging of ASP.NET projects in Google Chrome

2 Comments

Visual Studio 2017 RC now supports client-side debugging of both JavaScript and TypeScript in Google Chrome.

For years, it has been possible to debug both the backend .NET code and the client-side JavaScript code running in Internet Explorer at the same time. Unfortunately, the capability was limited solely to Internet Explorer.

In Visual Studio 2017 RC that changes. You can now debug both JavaScript and TypeScript directly in Visual Studio when using Google Chrome as your browser of choice. All you should do is to select Chrome as your browser in Visual Studio and hit F5 to debug.

If you’re interested in giving us feedback on future features and ideas before we ship them, join our community.

browser-selector

The first thing you’ll notice when launching Chrome by hitting F5 in Visual Studio is a page that says, “Please wait while we attach…”.

debugger-attach

What happens is that Visual Studio is attaching to Chrome using the remote debugging protocol and then redirects to the ASP.NET project URL (something like http://localhost:12345) after it attaches. After the attach is complete, the “Please wait while we attach…” message remains visible while the ASP.NET site starts up where normally you’d see a blank browser during this time.

Once the debugger is attached, script debugging is now enabled for all JavaScript files in the project as well as all TypeScript files if there is source map information available. Here’s a screen shot of a breakpoint being hit in a TypeScript file.

breakpoint-hit

For TypeScript debugging you need to instruct the compiler to produce a .map file. You can do that by placing a tsconfig.json file in the root of your project and specify the a few properties, like so:

{
  "compileOnSave": true,
  "compilerOptions": {
    "sourceMap": true
  }
}

There are developers who prefer to use Chrome’s or IE’s own dev tools to do client-side debugging and that is great. There will be a setting in Visual Studio that allows you to disable client-side debugging in both IE and Chrome, but unfortunately that didn’t make it in to the release candidate.

We hope you’ll enjoy this feature and we would love to hear your feedback in the comments section below, or via Twitter.

Download Visual Studio 2017 RC

Read the whole story
jeffjacobs
2920 days ago
reply
whoa wtf
Norfolk, Virginia
hansolosays
2920 days ago
reply
YAY
Norfolk, Virginia
Share this story
Delete

Inhabitat's Week in Green: floating skate ramp, foldable electric bicycle and a 3D-printed sneaker

1 Comment
Each week our friends at Inhabitat recap the week's most interesting green developments and clean tech news for us -- it's the Week in Green. The Earth is a mysterious place. Scientists recently discovered a small, rough diamond that reveals the...
Read the whole story
jeffjacobs
3901 days ago
reply
Chuck, are you gnarly enough?
Norfolk, Virginia
Share this story
Delete

Photo

2 Comments


Read the whole story
hansolosays
3994 days ago
reply
ha awesome
Norfolk, Virginia
jeffjacobs
3994 days ago
reply
@chuck
Norfolk, Virginia
Share this story
Delete

THIS is probably the best video of someone getting arrested in existence

1 Share
THIS is probably the best video of someone getting arrested in existence submitted by The_Labyrinth to videos
[link] [189 comments] [88 comments]
Read the whole story
jeffjacobs
4034 days ago
reply
Norfolk, Virginia
Share this story
Delete

People who are left-handed are more likely to develop psychotic disorders like schizophrenia rather than mood disorders such as depression, new research shows.

1 Comment
submitted by Souled_Out to science
[link] [321 comments] [37 comments]
Read the whole story
jeffjacobs
4036 days ago
reply
Tardhand!
Norfolk, Virginia
hansolosays
4034 days ago
+1
Share this story
Delete

POLIÇA - Chain My Name (Official Audio)

1 Comment

Published on Aug 19, 2013

New album 'Shulamith' coming 10/22 on Mom+Pop (US), 10/21 on Memphis Industries (UK), and 10/18 on Inertia (Aus).
Pre-order now at: <a href="http://www.thisispolica.com" rel="nofollow">www.thisispolica.com</a>
<a href="http://www.facebook.com/thisispolica" rel="nofollow">www.facebook.com/thisispolica</a>
wwww.twitter.com/thisispolica

Loading icon
Loading...

Loading icon
Loading...

Loading icon
Loading...

Loading icon
Loading...

Ratings have been disabled for this video.

Rating is available when the video has been rented.

This feature is not available right now. Please try again later.

Read the whole story
jeffjacobs
4041 days ago
reply
Chuck, a great song for your mix
Norfolk, Virginia
hansolosays
4041 days ago
I like it!
Share this story
Delete
Next Page of Stories