question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugging views of multiple projects in single solution.

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gregg-miskellycommented, May 13, 2020

@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?

1reaction
NTaylorMullencommented, May 13, 2020

Unfortunately I don’t quite understand the question. @NTaylorMullen is this related to the Razor tooling by chance?

This (Is it possible to debug views of different projects in single solution?) would actually fall under the .NET Core debugger. /cc @gregg-miskelly

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found