Can not debug with attach to process VS Pro 2017











up vote
0
down vote

favorite














I deployed my MVC project to IIS and now I need to debug code by attach process but it not work.

These are steps that I did to debug:





  1. Run my solution with Visual Studio Pro 2017 as Admin


  2. Debug -> Attach to process...


  3. Attach w3wp.exe process


  4. Restart my site in IIS Manager


  5. Run my site in browsers to debug





After above steps, my breakpoints always warning:




The breakpoint will not current be hit. No symbols have been loaded
for this document.






I can debug my code in the other PC with above steps but this way have problem with my laptop.

How can I fix this?

Thanks all.










share|improve this question


























    up vote
    0
    down vote

    favorite














    I deployed my MVC project to IIS and now I need to debug code by attach process but it not work.

    These are steps that I did to debug:





    1. Run my solution with Visual Studio Pro 2017 as Admin


    2. Debug -> Attach to process...


    3. Attach w3wp.exe process


    4. Restart my site in IIS Manager


    5. Run my site in browsers to debug





    After above steps, my breakpoints always warning:




    The breakpoint will not current be hit. No symbols have been loaded
    for this document.






    I can debug my code in the other PC with above steps but this way have problem with my laptop.

    How can I fix this?

    Thanks all.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite













      I deployed my MVC project to IIS and now I need to debug code by attach process but it not work.

      These are steps that I did to debug:





      1. Run my solution with Visual Studio Pro 2017 as Admin


      2. Debug -> Attach to process...


      3. Attach w3wp.exe process


      4. Restart my site in IIS Manager


      5. Run my site in browsers to debug





      After above steps, my breakpoints always warning:




      The breakpoint will not current be hit. No symbols have been loaded
      for this document.






      I can debug my code in the other PC with above steps but this way have problem with my laptop.

      How can I fix this?

      Thanks all.










      share|improve this question















      I deployed my MVC project to IIS and now I need to debug code by attach process but it not work.

      These are steps that I did to debug:





      1. Run my solution with Visual Studio Pro 2017 as Admin


      2. Debug -> Attach to process...


      3. Attach w3wp.exe process


      4. Restart my site in IIS Manager


      5. Run my site in browsers to debug





      After above steps, my breakpoints always warning:




      The breakpoint will not current be hit. No symbols have been loaded
      for this document.






      I can debug my code in the other PC with above steps but this way have problem with my laptop.

      How can I fix this?

      Thanks all.







      visual-studio-2017 visual-studio-debugging w3wp attach-to-process w3wp.exe






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 5 at 2:04









      Fox Vĩnh Tâm

      5310




      5310
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          I resolved my problem by:





          1. Debug -> Options...

          2. Uncheck at "Enable Just My Code"




          I installed the newest Visual Studio Professional 2017 (15.8.5) to my laptop. In this version, above option is checked as default.






          share|improve this answer





















          • Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
            – Leo Liu-MSFT
            yesterday











          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',
          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%2f53147398%2fcan-not-debug-with-attach-to-process-vs-pro-2017%23new-answer', 'question_page');
          }
          );

          Post as a guest
































          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          I resolved my problem by:





          1. Debug -> Options...

          2. Uncheck at "Enable Just My Code"




          I installed the newest Visual Studio Professional 2017 (15.8.5) to my laptop. In this version, above option is checked as default.






          share|improve this answer





















          • Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
            – Leo Liu-MSFT
            yesterday















          up vote
          1
          down vote



          accepted










          I resolved my problem by:





          1. Debug -> Options...

          2. Uncheck at "Enable Just My Code"




          I installed the newest Visual Studio Professional 2017 (15.8.5) to my laptop. In this version, above option is checked as default.






          share|improve this answer





















          • Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
            – Leo Liu-MSFT
            yesterday













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          I resolved my problem by:





          1. Debug -> Options...

          2. Uncheck at "Enable Just My Code"




          I installed the newest Visual Studio Professional 2017 (15.8.5) to my laptop. In this version, above option is checked as default.






          share|improve this answer












          I resolved my problem by:





          1. Debug -> Options...

          2. Uncheck at "Enable Just My Code"




          I installed the newest Visual Studio Professional 2017 (15.8.5) to my laptop. In this version, above option is checked as default.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 5 at 8:47









          Fox Vĩnh Tâm

          5310




          5310












          • Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
            – Leo Liu-MSFT
            yesterday


















          • Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
            – Leo Liu-MSFT
            yesterday
















          Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
          – Leo Liu-MSFT
          yesterday




          Thanks for sharing your solution here, you could Accept it as an Answer. This can be beneficial to other community members reading this thread and we could close this thread, thanks.
          – Leo Liu-MSFT
          yesterday


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147398%2fcan-not-debug-with-attach-to-process-vs-pro-2017%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini