VS2017 running debug selected tests does not open the debugger












1















I have Specflow/Nunit tests that used to debug fine last Friday (16-Nov-2018). The debugger suddenly stopped yesterday (20-Nov-2018) without me changing anything.



Steps:
1. Select any test on the Test Explorer window
2. Right click the test and select "Debug Selected Tests"
After this, the debugger should start and it should stop at the breakpoint but it doesn't. Instead I get an output relating to testhost.x86.exe and being unable to find PDB files (please find attached).



I have already tried the following:
1. Update to the latest version 15.9.2
2. Uninstall and reinstall VS2017 Professional (done twice already)
3. Add the system variable __UNITTESTEXPLORER_VSINSTALLPATH__
4. Disable Just My Code in Tools > Options > Debugging > General
5. Tick Microsoft Symbol Servers in Tools > Options > Debugging > Symbols



I have no idea what is going on and I have not changed anything yesterday or Monday. Please help.



Here are some of the messages from the output:
'testhost.x86.exe' (CLR v4.0.30319: domain-e649a6ea-Test.API.dll): Loaded 'D:ReposTestTest.APIbinDebugRestSharp.dll'. Cannot find or open the PDB file.



'testhost.x86.exe' (CLR v4.0.30319: testhost.x86.exe): Loaded 'C:windowsMicrosoft.NetassemblyGAC_MSILSystem.IO.FileSystemv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.IO.FileSystem.dll'. Module was built without symbols.



'testhost.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO2017PROFESSIONALCOMMON7IDEEXTENSIONSTESTPLATFORMtesthost.x86.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.



The program '[13292] testhost.x86.exe' has exited with code 0 (0x0).










share|improve this question























  • Are you trying to debug a Release build?

    – Charlie
    Nov 22 '18 at 6:01
















1















I have Specflow/Nunit tests that used to debug fine last Friday (16-Nov-2018). The debugger suddenly stopped yesterday (20-Nov-2018) without me changing anything.



Steps:
1. Select any test on the Test Explorer window
2. Right click the test and select "Debug Selected Tests"
After this, the debugger should start and it should stop at the breakpoint but it doesn't. Instead I get an output relating to testhost.x86.exe and being unable to find PDB files (please find attached).



I have already tried the following:
1. Update to the latest version 15.9.2
2. Uninstall and reinstall VS2017 Professional (done twice already)
3. Add the system variable __UNITTESTEXPLORER_VSINSTALLPATH__
4. Disable Just My Code in Tools > Options > Debugging > General
5. Tick Microsoft Symbol Servers in Tools > Options > Debugging > Symbols



I have no idea what is going on and I have not changed anything yesterday or Monday. Please help.



Here are some of the messages from the output:
'testhost.x86.exe' (CLR v4.0.30319: domain-e649a6ea-Test.API.dll): Loaded 'D:ReposTestTest.APIbinDebugRestSharp.dll'. Cannot find or open the PDB file.



'testhost.x86.exe' (CLR v4.0.30319: testhost.x86.exe): Loaded 'C:windowsMicrosoft.NetassemblyGAC_MSILSystem.IO.FileSystemv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.IO.FileSystem.dll'. Module was built without symbols.



'testhost.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO2017PROFESSIONALCOMMON7IDEEXTENSIONSTESTPLATFORMtesthost.x86.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.



The program '[13292] testhost.x86.exe' has exited with code 0 (0x0).










share|improve this question























  • Are you trying to debug a Release build?

    – Charlie
    Nov 22 '18 at 6:01














1












1








1








I have Specflow/Nunit tests that used to debug fine last Friday (16-Nov-2018). The debugger suddenly stopped yesterday (20-Nov-2018) without me changing anything.



Steps:
1. Select any test on the Test Explorer window
2. Right click the test and select "Debug Selected Tests"
After this, the debugger should start and it should stop at the breakpoint but it doesn't. Instead I get an output relating to testhost.x86.exe and being unable to find PDB files (please find attached).



I have already tried the following:
1. Update to the latest version 15.9.2
2. Uninstall and reinstall VS2017 Professional (done twice already)
3. Add the system variable __UNITTESTEXPLORER_VSINSTALLPATH__
4. Disable Just My Code in Tools > Options > Debugging > General
5. Tick Microsoft Symbol Servers in Tools > Options > Debugging > Symbols



I have no idea what is going on and I have not changed anything yesterday or Monday. Please help.



Here are some of the messages from the output:
'testhost.x86.exe' (CLR v4.0.30319: domain-e649a6ea-Test.API.dll): Loaded 'D:ReposTestTest.APIbinDebugRestSharp.dll'. Cannot find or open the PDB file.



'testhost.x86.exe' (CLR v4.0.30319: testhost.x86.exe): Loaded 'C:windowsMicrosoft.NetassemblyGAC_MSILSystem.IO.FileSystemv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.IO.FileSystem.dll'. Module was built without symbols.



'testhost.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO2017PROFESSIONALCOMMON7IDEEXTENSIONSTESTPLATFORMtesthost.x86.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.



The program '[13292] testhost.x86.exe' has exited with code 0 (0x0).










share|improve this question














I have Specflow/Nunit tests that used to debug fine last Friday (16-Nov-2018). The debugger suddenly stopped yesterday (20-Nov-2018) without me changing anything.



Steps:
1. Select any test on the Test Explorer window
2. Right click the test and select "Debug Selected Tests"
After this, the debugger should start and it should stop at the breakpoint but it doesn't. Instead I get an output relating to testhost.x86.exe and being unable to find PDB files (please find attached).



I have already tried the following:
1. Update to the latest version 15.9.2
2. Uninstall and reinstall VS2017 Professional (done twice already)
3. Add the system variable __UNITTESTEXPLORER_VSINSTALLPATH__
4. Disable Just My Code in Tools > Options > Debugging > General
5. Tick Microsoft Symbol Servers in Tools > Options > Debugging > Symbols



I have no idea what is going on and I have not changed anything yesterday or Monday. Please help.



Here are some of the messages from the output:
'testhost.x86.exe' (CLR v4.0.30319: domain-e649a6ea-Test.API.dll): Loaded 'D:ReposTestTest.APIbinDebugRestSharp.dll'. Cannot find or open the PDB file.



'testhost.x86.exe' (CLR v4.0.30319: testhost.x86.exe): Loaded 'C:windowsMicrosoft.NetassemblyGAC_MSILSystem.IO.FileSystemv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.IO.FileSystem.dll'. Module was built without symbols.



'testhost.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO2017PROFESSIONALCOMMON7IDEEXTENSIONSTESTPLATFORMtesthost.x86.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.



The program '[13292] testhost.x86.exe' has exited with code 0 (0x0).







c# visual-studio visual-studio-2017 nunit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 2:01









PlshelpPlshelp

62




62













  • Are you trying to debug a Release build?

    – Charlie
    Nov 22 '18 at 6:01



















  • Are you trying to debug a Release build?

    – Charlie
    Nov 22 '18 at 6:01

















Are you trying to debug a Release build?

– Charlie
Nov 22 '18 at 6:01





Are you trying to debug a Release build?

– Charlie
Nov 22 '18 at 6:01












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422894%2fvs2017-running-debug-selected-tests-does-not-open-the-debugger%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422894%2fvs2017-running-debug-selected-tests-does-not-open-the-debugger%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?