![]() Look for May 13 '19 and you can find more. So, the & stuff is part of javascript and others have written about it in the community. Here is what I usually use in my scripts: const debug = pm.globals.has("debug") & (pm.globals.get("debug") = 1)ĭebug & msg & console.log(`LOG: $`) You can setup the value in the collection, folder, or request pre-script too. Use the globals to hold a debug variable so that you can change change it from 0 and 1 depending on if you want to debug. Might be better to wrap the log in something. If you use console.log, you will always have to modify your script to get rid of it since it always runs. You can also subscribe to my YouTube channel.You are looking to console.log(“stuff”) A little bit more Let's connect on Twitter and on LinkedIn. With just a few lines of code, we can generate well-formatted JSON output that is easy to read and navigate. In this tutorial, we learned how to use the json module in Python to pretty print JSON as well as the pprint module. Pretty printing JSON in Python is an important skill to have for anyone working with JSON data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |