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.

Debugger fails to start because project is built to 'bin\BPC\...' instead of 'bin\...'

See original GitHub issue

Environment data

dotnet --info output: dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.1.302 Commit: 9048955601

Runtime Environment: OS Name: Windows OS Version: 6.1.7601 OS Platform: Windows RID: win7-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.302\

Host (useful for support): Version: 2.1.2 Commit: 811c3ce6c0

VSCode Version: Version: 1.25.1 Commit: 1dfc5e5 Date: 2018-07-11T15:43:53.668Z Electron: 1.7.12 Chrome: 58.0.3029.110 Node.js: 7.9.0 V8: 5.8.283.38 Architecture: x64

Steps to Reproduce:

  1. dotnet new console
  2. run in debug mode, get error

Narrative: the issue is that when I run “dotnet new console” it’s creating an extra layer of hierarchy that the debug part is not aware of somehow. The screen shot below should illustrate this issue: the paths to the dll are different.

image

#54668

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
rhirescommented, Jul 22, 2018

Thanks! This clears it all up.

1reaction
gregg-miskellycommented, Feb 12, 2020

If you aren’t an admin, you could open a command prompt, run set PLATFORM= to clear the environment variable, and launch VS Code from the command prompt. If you do this all the time, you could make yourself a trivial batch script to do this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start debugging. The startup project could not be ...
When I try to run, I get this : Unable to start debugging. The startup project could not be launched. Verify debug settings...
Read more >
VS IDE 2019 How to fix "Unable to start program...
I can tell that dataStructures is the startup project because it is highlighted in the Solution Explorer. Visual Studio is trying to execute ......
Read more >
Debugging in Visual Studio Code
VS Code's built-in debugger helps accelerate your edit, compile, and debug ... in a launch.json file located in a .vscode folder in your...
Read more >
Rider is running/debugging an old build
You have made some changes but Rider sticks to an old build? ... implementation instead of the test, the test still fails because...
Read more >
Debug Running Pods | Kubernetes
If your Pod is not yet running, start with Debugging Pods. ... Let's say we created the previous Deployment with 5 replicas (instead...
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