1. IT-Security >
  2. Programmierung >
  3. Python in Visual Studio Code ? March 2020 Release

ArabicEnglishFrenchGermanGreekItalianJapaneseKoreanPersianPolishPortugueseRussianSpanishTurkishVietnamese

Python in Visual Studio Code – March 2020 Release


Programmierung vom | Direktlink: devblogs.microsoft.com Nachrichten Bewertung


We are pleased to announce that the
March 2020 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Marketplace, or install it directly from the extension gallery in Visual Studio Code. If you already have the Python extension installed, you can also get the latest update by restarting Visual Studio Code. You can learn more about  Python support in Visual Studio Code in the documentation.  

This release is focused mostly on product quality. We closed a total of 66 issues, 43 of them being bug fixes.  But we’re also pleased to include brand-new Python debuggerdebugpy 

If you’re interested, you can check the full list of improvements iour changelog. 

New Debugger 

We’re excited to announce that in this release we’re including a new debugger, debugpy. The debugger team has put a lot of effort into making it a faster and even more reliable Python debuggerAlong with the debugger, a new feature also comes: an easier configuration experience to attach the debugger to local processes. 

Attaching to local processes 

Sometimes you may want to attach the debugger to a Python process that is running on your machinebut that can be tricky if, for example, you don’t have control over the application that launched that process 

We made it easy to be done with our new configuration experience for attaching the debugger to local processes.  

If you don’t have a launch.json file on your workspace folder, you can simply start a debug session (by pressing F5 or through Run Start Debugging) and you’ll be presented with a list of debug configuration options. When you select “Attach using Process ID”, it will display a list of processes running locally on your machine: 

Configuration options for debugger.

Alternatively, if you already have a launch.json file on your workspace folder, you can add a configuration to it by clicking on the “Add configuration…” option under the drop-down menu in the Run viewlet: Adding a configuration from the debug viewlet

Then when you select “Python”, you’ll be presented with the same configuration options as above: 

Adding a configuration for attaching to a local process

Selecting the “Attach using Process ID” option from the debug configuration menu adds the below configuration to the existing launch.json file: 

{ 

            "name": "Python: Attach using Process Id", 

            "type": "python", 

            "request": "attach", 

            "processId": "${command:pickProcess}" 

}

When you start a debug session with this configuration selecteda list of processes to which you can attach the debugger will be displayed, and once you pick one, the debugger will attempt to attach to it: 

Selecting a process to attach the debugger

You can also filter the processes by ID, file name or interpreter name: 

Filtering the processes view by file name and process ID

Alternatively, if you already know the ID of the process to which you wish to attach the debugger, you can simply add the value directly on the configuration. For example, to attach to a process of ID 1796, you can simply use the below configuration: 

{ 

            "name": "Python: Attach using Process Id", 

            "type": "python", 

            "request": "attach", 

            "processId": 1796 

}

For more information about debugpy such as how to transition from ptvsd, API changes, CLI references, allowed debug configurations and more, you can check debugpy’s wiki page.   

Other Changes and Enhancements 

We have also added small enhancements and fixed issues requested by users that should improve your experience working with Python in Visual Studio Code. Some notable changes include: 

  • Remove extra lines at the end of the file when formatting with Black. (#1877) 
  • Support scrolling beyond the last line in the notebook editor and the interactive window. (#7892) 
  • Added a command to allow users to select a kernel for a Notebook. (#9228) 
  • Show quickfixes for launch.json. (#10245) 
  • Update Jedi to 0.16.0. (#9765) 

We’re constantly A/B testing new features. If you see something different that was not announced by the team, you may be part of the experiment! To see if you are part of an experiment, you can check the first lines in the Python extension output channel. If you wish to opt-out of A/B testing, you can open the user settings.json file (View Command Palette… and run Preferences: Open Settings (JSON)) and set the “python.experiments.enabled” setting to false 

Be sure to download the Python extension for Visual Studio Code now to try out the above improvements. If you run into any problems, please file an issue on the Python VS Code GitHub page. 

 

The post Python in Visual Studio Code – March 2020 Release appeared first on Python.

...

Externe Webseite mit kompletten Inhalt öffnen



https://devblogs.microsoft.com/python/python-in-visual-studio-code-march-2020-release/

Team Security Social Media

➤ Weitere Beiträge von Team Security | IT Sicherheit

  • Regex Performance Improvements in .NET 5

    vom 758.59 Punkte ic_school_black_18dp
    The System.Text.RegularExpressions namespace has been in .NET for years, all the way back to .NET Framework 1.1. It’s used in hundreds of places within the .NET implementation itself, and directly by thousands upon thousands of applications. Across all of t
  • CentOS Blog: CentOS Community newsletter, April 2020 (#2004)

    vom 745.96 Punkte ic_school_black_18dp
    Dear CentOS enthusiast, I hope you are all well. I know that this is a very difficult time for all of you, and that you likely have other things on your mind than CentOS, so I'll try to make it interesting this month. In this edition: News Releases and updates Event
  • Using Visual Studio for Cross Platform C++ Development Targeting Windows and Linux

    vom 700.78 Punkte ic_school_black_18dp
    A great strength of C++ is the ability to target multiple platforms without sacrificing performance. If you are using the same codebase for multiple targets, then CMake is the most common solution for building your software. You can use Visual Studio f
  • ConfigureAwait FAQ

    vom 684.55 Punkte ic_school_black_18dp
    .NET added async/await to the languages and libraries over seven years ago. In that time, it’s caught on like wildfire, not only across the .NET ecosystem, but also being replicated in a myriad of other languages and frameworks. It’s also seen a ton of im
  • RetDec - A Retargetable Machine-Code Decompiler Based On LLVM

    vom 675.62 Punkte ic_school_black_18dp
    RetDec is a retargetable machine-code decompiler based on LLVM.The decompiler is not limited to any particular target architecture, operating system, or executable file format:Supported file formats: ELF, PE, Mach-O, COFF, AR (archive), Intel HEX, and ra
  • Local Privilege Escalation in Win32k.sys Through Indexed Color Palettes

    vom 657.13 Punkte ic_school_black_18dp
    This is the second in our series of Top 5 interesting cases from 2019. Each of these bugs has some element that sets them apart from the more than 1,000 advisories released by the program this year. Today’s blog looks a local privilege escalation in t
  • Malcolm - A Powerful, Easily Deployable Network Traffic Analysis Tool Suite For Full Packet Capture Artifacts (PCAP Files) And Zeek Logs

    vom 623.61 Punkte ic_school_black_18dp
    Malcolm is a powerful network traffic analysis tool suite designed with the following goals in mind: Easy to use – Malcolm accepts network traffic data in the form of full packet capture (PCAP) files and Zeek (formerly Bro) logs. These artifacts can be
  • Announcing TypeScript 3.7

    vom 573.33 Punkte ic_school_black_18dp
    We’re thrilled to announce the release of TypeScript 3.7, a release packed with awesome new language, compiler, and tooling features. If you haven’t yet heard of TypeScript, it’s a language based on JavaScript that adds static type-checking along wit
  • CVE-2020-8835: Linux Kernel Privilege Escalation via Improper eBPF Program Verification

    vom 548.39 Punkte ic_school_black_18dp
    During the recent Pwn2Own 2020 competition, Manfred Paul (@_manfp) of RedRocket CTF used an improper input validation bug in the Linux kernel to go from a standard user to root. Manfred used this bug during the contest to win $30,000 in the Privilege Escalation categ
  • Announcing TypeScript 3.8

    vom 540.34 Punkte ic_school_black_18dp
    Today we’re proud to release TypeScript 3.8! For those unfamiliar with TypeScript, it’s a language that adds syntax for types on top of JavaScript which can be analyzed through a process called static type-checking. This type-checking can tell us about
  • Get to code: How we designed the new Visual Studio start window

    vom 532.29 Punkte ic_school_black_18dp
    By now, many of you may have noticed a very prominent change to the launch of Visual Studio in Visual Studio 2019 Preview 1. Our goal with this new experience is to provide rapid access to the most common ways that developers get to their code: whether it
  • Get to code: How we designed the new Visual Studio start window

    vom 532.29 Punkte ic_school_black_18dp
    By now, many of you may have noticed a very prominent change to the launch of Visual Studio in Visual Studio 2019 Preview 1. Our goal with this new experience is to provide rapid access to the most common ways that developers get to their code: whether it

Team Security Diskussion über Python in Visual Studio Code – March 2020 Release