Can't get Visual Studio to allow me to debug, only “Attach”
When I am trying to run a program in Visual Studio, I do not have the option to debug the program. I only have the option to "Attach". I have looked up other solutions to this problem but I do not have anything to solve the problem. I will be attaching an image to this post. Thank you in advance for your time.
- Microsoft Visual Studio Community 2017
- Version 15.9.5
- Microsoft .NET Framework
- Version 4.7.03056
visual-studio-2017
|
show 1 more comment
When I am trying to run a program in Visual Studio, I do not have the option to debug the program. I only have the option to "Attach". I have looked up other solutions to this problem but I do not have anything to solve the problem. I will be attaching an image to this post. Thank you in advance for your time.
- Microsoft Visual Studio Community 2017
- Version 15.9.5
- Microsoft .NET Framework
- Version 4.7.03056
visual-studio-2017
Do you have your build configuration in Release or Debug? Edit your question to provide the necessary information required to answer your question.
– Ramhound
Jan 16 at 1:31
Why did you copy and paste and provide every Visual Studio extension you have installed? You failed to indicate if you have your project in Debug or Release configuration.
– Ramhound
Jan 16 at 1:50
Where do I find that?
– Letholor
Jan 16 at 1:53
Did you open a project or a single file? Is this your program or someone elses? How much experience do you have with Visual Studio and C++?
– HazardousGlitch
Jan 16 at 2:02
I opened a file. I have a little experience but not much. I opened a file for my class that I'm in.
– Letholor
Jan 16 at 2:04
|
show 1 more comment
When I am trying to run a program in Visual Studio, I do not have the option to debug the program. I only have the option to "Attach". I have looked up other solutions to this problem but I do not have anything to solve the problem. I will be attaching an image to this post. Thank you in advance for your time.
- Microsoft Visual Studio Community 2017
- Version 15.9.5
- Microsoft .NET Framework
- Version 4.7.03056
visual-studio-2017
When I am trying to run a program in Visual Studio, I do not have the option to debug the program. I only have the option to "Attach". I have looked up other solutions to this problem but I do not have anything to solve the problem. I will be attaching an image to this post. Thank you in advance for your time.
- Microsoft Visual Studio Community 2017
- Version 15.9.5
- Microsoft .NET Framework
- Version 4.7.03056
visual-studio-2017
visual-studio-2017
edited Jan 16 at 2:26
Ramhound
20.2k156085
20.2k156085
asked Jan 16 at 1:18
LetholorLetholor
33
33
Do you have your build configuration in Release or Debug? Edit your question to provide the necessary information required to answer your question.
– Ramhound
Jan 16 at 1:31
Why did you copy and paste and provide every Visual Studio extension you have installed? You failed to indicate if you have your project in Debug or Release configuration.
– Ramhound
Jan 16 at 1:50
Where do I find that?
– Letholor
Jan 16 at 1:53
Did you open a project or a single file? Is this your program or someone elses? How much experience do you have with Visual Studio and C++?
– HazardousGlitch
Jan 16 at 2:02
I opened a file. I have a little experience but not much. I opened a file for my class that I'm in.
– Letholor
Jan 16 at 2:04
|
show 1 more comment
Do you have your build configuration in Release or Debug? Edit your question to provide the necessary information required to answer your question.
– Ramhound
Jan 16 at 1:31
Why did you copy and paste and provide every Visual Studio extension you have installed? You failed to indicate if you have your project in Debug or Release configuration.
– Ramhound
Jan 16 at 1:50
Where do I find that?
– Letholor
Jan 16 at 1:53
Did you open a project or a single file? Is this your program or someone elses? How much experience do you have with Visual Studio and C++?
– HazardousGlitch
Jan 16 at 2:02
I opened a file. I have a little experience but not much. I opened a file for my class that I'm in.
– Letholor
Jan 16 at 2:04
Do you have your build configuration in Release or Debug? Edit your question to provide the necessary information required to answer your question.
– Ramhound
Jan 16 at 1:31
Do you have your build configuration in Release or Debug? Edit your question to provide the necessary information required to answer your question.
– Ramhound
Jan 16 at 1:31
Why did you copy and paste and provide every Visual Studio extension you have installed? You failed to indicate if you have your project in Debug or Release configuration.
– Ramhound
Jan 16 at 1:50
Why did you copy and paste and provide every Visual Studio extension you have installed? You failed to indicate if you have your project in Debug or Release configuration.
– Ramhound
Jan 16 at 1:50
Where do I find that?
– Letholor
Jan 16 at 1:53
Where do I find that?
– Letholor
Jan 16 at 1:53
Did you open a project or a single file? Is this your program or someone elses? How much experience do you have with Visual Studio and C++?
– HazardousGlitch
Jan 16 at 2:02
Did you open a project or a single file? Is this your program or someone elses? How much experience do you have with Visual Studio and C++?
– HazardousGlitch
Jan 16 at 2:02
I opened a file. I have a little experience but not much. I opened a file for my class that I'm in.
– Letholor
Jan 16 at 2:04
I opened a file. I have a little experience but not much. I opened a file for my class that I'm in.
– Letholor
Jan 16 at 2:04
|
show 1 more comment
1 Answer
1
active
oldest
votes
You can't debug a single file, you'll need to open a Solution(.sln) or Project (.vcxproj) instead. The Solution/Project contains all the configuration, settings and files needed for the program. Inside the folder you got from school should be a .sln or .vcxproj file (or both). Solutions can hold multiple Projects. Projects are the individual programs you're writing. Open that and try debugging again.
1
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394758%2fcant-get-visual-studio-to-allow-me-to-debug-only-attach%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can't debug a single file, you'll need to open a Solution(.sln) or Project (.vcxproj) instead. The Solution/Project contains all the configuration, settings and files needed for the program. Inside the folder you got from school should be a .sln or .vcxproj file (or both). Solutions can hold multiple Projects. Projects are the individual programs you're writing. Open that and try debugging again.
1
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
add a comment |
You can't debug a single file, you'll need to open a Solution(.sln) or Project (.vcxproj) instead. The Solution/Project contains all the configuration, settings and files needed for the program. Inside the folder you got from school should be a .sln or .vcxproj file (or both). Solutions can hold multiple Projects. Projects are the individual programs you're writing. Open that and try debugging again.
1
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
add a comment |
You can't debug a single file, you'll need to open a Solution(.sln) or Project (.vcxproj) instead. The Solution/Project contains all the configuration, settings and files needed for the program. Inside the folder you got from school should be a .sln or .vcxproj file (or both). Solutions can hold multiple Projects. Projects are the individual programs you're writing. Open that and try debugging again.
You can't debug a single file, you'll need to open a Solution(.sln) or Project (.vcxproj) instead. The Solution/Project contains all the configuration, settings and files needed for the program. Inside the folder you got from school should be a .sln or .vcxproj file (or both). Solutions can hold multiple Projects. Projects are the individual programs you're writing. Open that and try debugging again.
edited Jan 16 at 2:26
answered Jan 16 at 2:20
HazardousGlitchHazardousGlitch
49019
49019
1
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
add a comment |
1
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
1
1
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
It seems that I need to notify my professor that I was not given the solution file. That explains why I couldn't find it while trying to open it from Visual Studio.
– Letholor
Jan 16 at 3:55
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394758%2fcant-get-visual-studio-to-allow-me-to-debug-only-attach%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have your build configuration in Release or Debug? Edit your question to provide the necessary information required to answer your question.
– Ramhound
Jan 16 at 1:31
Why did you copy and paste and provide every Visual Studio extension you have installed? You failed to indicate if you have your project in Debug or Release configuration.
– Ramhound
Jan 16 at 1:50
Where do I find that?
– Letholor
Jan 16 at 1:53
Did you open a project or a single file? Is this your program or someone elses? How much experience do you have with Visual Studio and C++?
– HazardousGlitch
Jan 16 at 2:02
I opened a file. I have a little experience but not much. I opened a file for my class that I'm in.
– Letholor
Jan 16 at 2:04