1

Is it possible to exclude lines of code when executing the debugger with F5? In Visual Studio there's the next statement (CTRL+SHIFT+F10). For example, I have lines of code that perform a log in and I don't want that log in to occur each time I start the debugger.

Thanks for your advice.

5
  • Can you provide the code? Commented Aug 26, 2019 at 7:55
  • 1
    I don't think their are another way than commenting out the code # or <# >. stackoverflow.com/questions/7342597/… Commented Aug 26, 2019 at 7:58
  • @Modro, I thought that would be necessary as the question is very generic. Like: Can I start the debugger whilst excluding lines 1-14 plus 33 plus 50-75. I guess I'll have to stick to block comments then but I'll wait for other replies as well. Thanks. Commented Aug 26, 2019 at 8:03
  • 1
    i know that this is possible with Powershell Studio. Commented Aug 26, 2019 at 8:58
  • Don't know of this being supported atm, but VS Code supports step out/in so for your dev testing, you could just add a boolean Switch parameter that either does or doesn't trigger the code you want to avoid executing Commented Aug 27, 2019 at 14:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.