Skip to content

Commit

Permalink
Merge pull request #566 from wesrupert/enablerazor
Browse files Browse the repository at this point in the history
Enable razor debugging support
  • Loading branch information
wesrupert authored Jul 14, 2016
2 parents 99b14d3 + b85b1ce commit 0aaeee9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@
"label": ".NET Core",
"enableBreakpointsFor": {
"languageIds": [
"csharp"
"csharp",
"razor"
]
},
"runtime": "node",
Expand Down Expand Up @@ -623,6 +624,9 @@
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceRoot}/Views"
}
},
{
Expand Down
4 changes: 4 additions & 0 deletions src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface DebugConfiguration {
name: string,
type: string,
request: string,
sourceFileMap?: any,
}

interface ConsoleLaunchConfiguration extends DebugConfiguration {
Expand Down Expand Up @@ -170,6 +171,9 @@ function createWebLaunchConfiguration(targetFramework: string, executableName: s
},
env: {
ASPNETCORE_ENVIRONMENT: "Development"
},
sourceFileMap: {
"/Views": "${workspaceRoot}/Views"
}
}
}
Expand Down

0 comments on commit 0aaeee9

Please sign in to comment.