PTVS 2.0 Beta: Mixed-Mode Python/C/C++ Debugging overview

Channel:python tools · Length:8:11 · Published:2013-06-26 · Views:7807

Watch on YouTube

Summary

An overview of the PTVS 2.0 beta feature for debugging Python and C/C++ together in one session in Visual Studio.

Why HN recommends it

Linked whenever mixed Python and C++ debugging came up as a neat PTVS feature.

if you want to get a feel for an advanced feature, try — HN, 2015

Python, Ruby & scripting languages · Testing, debugging & developer tools

Subtitles (excerpt)

hello I'm p m and today I will be showing you mixed mode python native debugging and python tools for visual studio for the purposes of this demo we'll start with a simple pre-made solution that consists of a python extension modu written in C++ and a python script that calls various functions and methods in that module first of all we will need to enable native code debugging for this project to do so I open the python project properties dialogue navigate to the debug Tab and enable the native code debugging option now let's try to start debugging the project by navigating to debug start debugging when mix mode debugging is enabled for the first time you will see this dialogue saying that you'll need to bug symbols for your python interpreter most likely you do not have those downloaded yet so click on the download symbols button to open a documentation page which provides direct links to symbols for various supported python interpreters the project that we are debugging is using python 33 and I have cpython 332 32bit installed on this machine so let's get the symbols for that the downloaded symbol files are inside a single zip archive that must be unpacked to some local folder in this case it will be C python through 3

On Hacker News

If you want to get a feel for what PTVS is like, you can watch these short videos: [LINK] 10k foot view web page: [LINK] if you want to get a feel for an advanced feature, try: [VIDEO] — smortaz, 2015-08
very nice! plug: if you happen to be on windows, try PTVS which has nice features like mixed-mode Python/C++ debugging as well cross debugging from Visual Studio <-> linux & MacOS. (it's a free plug-in). [VIDEO] — smortaz, 2013-11
awesome tutorial. if you need a free Python IDE (based on VS) to try the exercises in, we just released PTVS 2.0 Beta: [LINK] . for you gurus, it's got a cool new feature: debugging Python & C++ together: [VIDEO] — smortaz, 2013-06
mini ASK HN: would there be any interest in supporting Julia in Visual Studio? (as a free/oss plugin). i lead the Python Tools for Visual Studio project at msft and would be curious if there is interest. as a side note, if you do you use Python & require Python/C++ debugging, PTVS now supports it: [VIDEO] — smortaz, 2014-01
>[...] you're a hardcore PhD who wants mixed-language Python and C++ debugging [1] [...] It is mentioned. 1: [VIDEO] — bru, 2013-07

Related videos