How To Debug A Program With Arguments In VSCode

  Рет қаралды 37,008

Case Digital

Case Digital

Күн бұрын

Пікірлер: 45
@rwstavros
@rwstavros Жыл бұрын
Well done. Quick, simple, and clearly explained. Not too fast, not too slow and words clearly articulated. Thanks.
@coreyrunyon7678
@coreyrunyon7678 Жыл бұрын
Perfect! Straight to the point, informative without over explaining, and the variable information I needed like passing a "-f" parameter. Thank you!
@arielpriarone7125
@arielpriarone7125 Жыл бұрын
Finally a video that prioritize the useful informations
@5nanometers
@5nanometers Жыл бұрын
Thank you. I had no idea how to debug programs that required terminal arguments. This helps a lot.
@pawjast
@pawjast 2 ай бұрын
Nice and simple explanation 👍👍
@charalamposkatsoukis8694
@charalamposkatsoukis8694 10 ай бұрын
Absolutely incredible video. Well done Sir! Exactly on point!
@mpkrass
@mpkrass Жыл бұрын
I was searching for this forever. Thank you!
@simonprentice8153
@simonprentice8153 7 ай бұрын
This video was enough for me to subscribe. Thanks.
@IamKhoramdin
@IamKhoramdin Жыл бұрын
you saved my day. thank you
@kelvinabambora9
@kelvinabambora9 Жыл бұрын
Thank you! Finally, an answer. You my god damn hero! easy subscribe
@CaseDigital
@CaseDigital Жыл бұрын
Glad I could help! Let me know if there are any other topics that you would like to hear about!
@BruceElgort
@BruceElgort Жыл бұрын
Thank you for this! I did not know about this feature.
@detranquoc2608
@detranquoc2608 Жыл бұрын
Thanks, can you make more videos about debugging, like debugging for python file containing imported files
@malcolmanderson6735
@malcolmanderson6735 Жыл бұрын
Exactly the video I needed
@diogo2381
@diogo2381 Жыл бұрын
Thank you very much for the tip!
@click9000
@click9000 11 ай бұрын
Thanks. This really help.
@PumpkinEater6699
@PumpkinEater6699 5 ай бұрын
Thanks a ton
@pavelgrishin
@pavelgrishin 8 ай бұрын
you could lay out the REQUIRED info a lot faster. You're a programmer to some extent? Heard anything about optimization?
@CaseDigital
@CaseDigital 8 ай бұрын
Thanks for the feedback back I appreciate it! Yea I am a programmer. I have heard of optimization is there something in particular you’re looking to optimize?
@elainamann7106
@elainamann7106 11 ай бұрын
You are my hero
@PatrickSteil
@PatrickSteil 5 ай бұрын
Needed to know how to pass both args like --debug=4 and -k value
@CaseDigital
@CaseDigital 5 ай бұрын
Did this help or is an updated video needed?
@PatrickSteil
@PatrickSteil 5 ай бұрын
@@CaseDigital Here is what I had to do... for any who are looking for this also: "args": [ "--debug=4", "-k", "test_PROD_400_011" ],
@1234567mrbob
@1234567mrbob Жыл бұрын
I don't see that option. All the options I see are "Open a folder", which pops open the file open dialog (useless!), and "Show all automatic debug configurations". If I click that I just see a list, from which I select python, and there is no option to create that file. What do I do?
@CaseDigital
@CaseDigital Жыл бұрын
@1234567mrbob if you are seeing that then you will want to click explorer icon on the very top left and the select the open folder button. Choose the folder where the code you want to debug is. Once that has loaded go back to the. Debug icon and you should now see the blue text that says create a launch.json file. It should be there unless you already have launch file. To tell if you have a launch folder you can check the explorer tab and see if there is a file called launch.json in a folder called .vscode that is in the root folder that is opened. Let me know if that helps
@1234567mrbob
@1234567mrbob Жыл бұрын
@@CaseDigital Right. I found the answer. What I ended up doing was to go to the root (C:\), start Vcode, select the folder my script was in, and then I was able to create the launch.json file. From there I could add arguments. Kind of a roundabout way of doing it, so I'll try your approach next time.
@jimmydesai9248
@jimmydesai9248 Жыл бұрын
@@CaseDigital Perfect. This was the missing piece for me in the video. Thanks!
@paris_mars
@paris_mars Жыл бұрын
Good stuff. Thanks, man.
@surfettekw
@surfettekw Жыл бұрын
How would you (or could you) run debugger through a series of arguments on the same script … like run script on argument a and then do b and then c…..
@CaseDigital
@CaseDigital Жыл бұрын
@surfettekw are you going to step through the debugging process with each argument (like do you have breakpoints setup in the script that you will stop at and check values) or are you trying to run different arguments and see what happens?
@fanefierarul
@fanefierarul Жыл бұрын
Thx a lot!
@mentefria98
@mentefria98 Жыл бұрын
what if when I click "create a launch.json file" and then select the python option, nothing happens and I don't get any "launch.json" file?
@CaseDigital
@CaseDigital Жыл бұрын
@mentefria98 if nothing is created then what you could do is in the root folder of your project create a “.vscode” folder and then within that create a launch.json file and then just write down what you see from the video. This is essentially the manual process to create what that button should do.
@billnewsr.9314
@billnewsr.9314 Жыл бұрын
Very Interesting. How about a video doing the same but in a Visual Studio Code C# application using MVC?
@CaseDigital
@CaseDigital Жыл бұрын
Is there something on GitHub that you are using that you would like to see this done with?
@billnewsr.9314
@billnewsr.9314 Жыл бұрын
@@CaseDigital python examples are great. I know how to do it... just that you did an excellent job with this video. Expanding the horizons on other style applications in Visual Studio Code is helpful. Thank you!
@CaseDigital
@CaseDigital Жыл бұрын
That’s a good point thank you for the feedback and I’ll look into it!
@ronen2512
@ronen2512 8 ай бұрын
just so much easier on eclipse
@BenGawiser
@BenGawiser 2 ай бұрын
This video could've been a sentence. "Use 'args' in your launch file".
@raymondfendyj6684
@raymondfendyj6684 Жыл бұрын
Hey, I was doing the 'parse args' steps but I seemed to need to put the args in the order of the list of args defined, which some of them I do not actually need. Can you help me with this? I have around 40 arguments and would not be using all (some have default values). Thank you!
@CaseDigital
@CaseDigital Жыл бұрын
Have you tried making your args list in the debugging setup look something like this: “args”: [“argName1=val1”, “argname2=val2” …. With only the args you are inputting? This should allow you to skip the ordering for the arguments that have default values that you aren’t changing, but the arguments that don’t have default values will need inputted
@raymondfendyj6684
@raymondfendyj6684 Жыл бұрын
@@CaseDigital Oh I have resolved it with putting strings to all of my args (even to ints), surprised how it can detect which arg should be int/str/... ! Also tried dict but the args only accept list / string. Thanks for the video :") one of the few walk through that actually answers my question after a few hours of googling
@CaseDigital
@CaseDigital Жыл бұрын
Glad you were able to resolve your problem. Let me know if there is anything else I can help with!
@thinhlpg
@thinhlpg Жыл бұрын
Thank you!
How To Get All Indices Of An Element In A List In Python
4:46
Case Digital
Рет қаралды 1,1 М.
Debugging Python in VSCode - 01 - Intro to Debugging in VSCode
11:13
Boris Paskhaver
Рет қаралды 50 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 68 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 52 МЛН
когда не обедаешь в школе // EVA mash
00:51
What are command line arguments (argc and argv)?
11:38
CodeVault
Рет қаралды 120 М.
Everything You Need to Know about Debugging in VSCode
7:02
ArjanCodes
Рет қаралды 37 М.
you need to stop using print debugging (do THIS instead)
7:07
Low Level
Рет қаралды 437 М.
Python Debugging (PyCharm + VS Code)
24:18
mCoding
Рет қаралды 38 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 89 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Rust: When C Code Isn't Enough
8:26
CodeAhead
Рет қаралды 168 М.
How to DEBUG C++ in VISUAL STUDIO
19:20
The Cherno
Рет қаралды 477 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 276 М.