Debugging views of multiple projects in single solution.
See original GitHub issueHello,
I have a solution with several asp.net core projects. I do not find how to indicate in the launch.json files several path for the views (Razor). (It is a project of partials apps)
Here is the part of the file:
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build & prepare",
"program": "${workspaceRoot}/src/WebApplication/bin/Debug/netcoreapp2.2/WebApplication.dll",
"args": [],
"cwd": "${workspaceRoot}/src/WebApplication/",
"stopAtEntry": false,
"internalConsoleOptions": "openOnFirstSessionStart",
"launchBrowser": {
"enabled": true,
"args": "${auto-detect-url}",
"runtimeArgs": [
"--incognito"
],
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5000"
},
"sourceFileMap": {
"/Views": "${workspaceRoot}/src/SoftinuxBase.Security/Views"
}
}
Is it possible to debug views of different projects in single solution? Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Debug multiple processes - Visual Studio (Windows)
When more than one project in a Visual Studio solution can run independently, you can select which project the debugger starts.
Read more >Visual Studio: debug multiple projects at the same time?
Yes, it is possible. You can set multiple startup projects in your solution (right-click solution, go to Set Startup Projects, ...
Read more >Debug Multiple Projects at the Same Time in Visual Studio
In the properties window, under Common Properties, select Startup Project. From here we can select the Multiple startup projects option, and ...
Read more >Running multiple projects in Visual Studio at once - Dave Callan
1 – Right click the solution and select 'Set Startup Projects…'. 2 – Select 'Multiple startup projects' and choose two or more projects....
Read more >How to debug multiple web projects in Visual Studio for Mac
In this video I show you how you can debug, or run, multiple web projects in Visual Studio for Mac.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@NTaylorMullen This isn’t so much a debugger problem as a view compilation problem - when views are compiled, instead of using real source paths, the PDB instead claims that all the source files are in a directory named ‘/Views’. Do you know if there is an option in view compilation to either disable this redirection to ‘/Views’ or to at least customize them?
This (
Is it possible to debug views of different projects in single solution?
) would actually fall under the .NET Core debugger. /cc @gregg-miskelly