Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPeter Jacobsen
2,142 PointsVSC goes to next input point after running again without entering an input.
Ok so, my problem is, that if i click run and it asks for an input without me adding an input, and i then edit it and save, then when i run it again, it goes to next input point. so i have to run it multiple times to restart script. Why and how can i change that? :)
Peter Jacobsen
2,142 PointsThis whole message is said with a smile, so i don't mean to be offensive in ANY way:)
I don't know if i read it in the wrong tone but it feels like you're a bit offensive? IF THATS THE CASE... well try and read my question again.. What does my code have to do with the way VSC works. Now VSC has options to edit how it should work but i need to know what file to edit and what code. So my code wouldn't help anything. Therefore it is a waste of time for you to read the code. now next time when helping, don't come out offensive, thats not a way to help people :)
IF YOU DIDN'T MEAN TO BE OFFENSIVE: I appreciate your time to try and help, but it's not my code theres something wrong with. its VSC which is a program to code, just like sublime text, or Eclipse etc. When running a program, and you see a error in your code, you edit and save the code, and run again you would expect it to start over. It does not, it goes to the next input of the script. Therefore i ask IF and HOW i can change that so it restarts the script whenever i hit "RUN SCRIPT" since its possible to edit some settings, but it requires json coding and maybe some other coding language :)
Now the first message for the offensive part, is because i don't want somebody to come and be offensive, thats not why im asking for help. If you didn't understand you could just ask me to give a further explanation.
Either way i hope you have a great day. Peace :)
Steven Parker
231,236 PointsI was just providing hints in case you wanted to share your code to make it possible for someone to replicate the issue. It didn't occur to me that someone more experienced with VSC/Python might have a ready answer without seeing the issue first hand. Good luck, and happy coding!
2 Answers
Rachel KTY Johnson
Treehouse Project ReviewerHey Peter Jacobsen ! I can't be 100% sure but it sounds like you may have a debugger running within VSCode. It sounds like it's stepping through bits of your code at a time until it hits a specific line (ie, one that asks for input or one that causes an error), which is what a debugger would be doing. I don't personally use VSCode, but you may want to check if the script is done running completely (usually if it's not, there might be a STOP button present) before running it again.
Peter Jacobsen
2,142 PointsOh, no worries, i just didn't know how to take the first comment :) and thanks :)
Steven Parker
231,236 PointsSteven Parker
231,236 PointsIt would help if you show your code. Take a look at this video about Posting a Question, and perhaps also this one about sharing a snapshot of your workspace.