My C++ application contains Python (2.7.6) code calls. I am using Visual Studio 2010 for C++ debugging and IntelliJ IDEA 13 as Python debugger.
I am looking for a way to stop at break points set in IntelliJ while calling Python from C++ code being debugged in Visual Studio.
Thank you!
Related
I am having a problem to debug the C++ side library code driven by a python application via pybind11. I let the python side sleep for a while before calling the C++ library, then attach the C++ library to the python exe, but was told the symbols on the C++ side are not loaded and therefore the breakpoints will not be reached. Anyone has a better idea?
I have read that there is version of python in visual studio 2017.
I have read that it contains Django.... since, I think a good debugger, and IDE like visual studio would be great for web development... I wonder if it is possible.. to develop python & Django using Visual Studio 2017?
Pycharm is the best IDE for python development I think. You can try it. hope helpful.
We are trying to debug C++ code called by a Python script (using subprocess.call). Is there a way to do this with PyDev? I am a Java developer and we are developing an Eclipse RCP application, and can write custom code as needed to make this work.
If you want to debug c++ code, you need a c++ debugger (and PyDev won't really help you there).
My suggestion is looking for a c++ debugger in this case (you can use gdb in windows and linux -- on windows you can also use visual c++ if you want -- you should be able to attach to a running process on both cases -- I think that CDT also has some gdb integration which you can use if you set it up properly).
I work Python and django with linux(ubuntu) also I work C# with visual studio 2010
but I want to work Python & django with visual studio 2010, i do first steps for programming in this but cannot run projects in browser like linux.
please help me about this?
I'm not sure I get your question... But to get python to work in visual studio you need to be able to compile it.
If you want an easy fix use pytools:
http://pytools.codeplex.com/
If you want to do it yourself Read up on python compiling for VS here:
https://wiki.python.org/moin/VS2010
What's the best way to call python scripts from Visual Basic 2005?
I've got an application written in visual basic 2005 that needs to call into a library written in python. The library requires python 2.6. I'm using the python C API to access the python library from the visual basic code (private declare function blah lib "python26.dll" etc). I'm doing it this way because I want to pull values out of python after the python library does its thing. Unfortunately, I get an error about the C run-time:
"R6034: An application has made an attempt to load the C runtime library incorrectly."
I think it's a conflict between MSVCR80.dll (the 2005 runtime) and MSVCR90.dll (the 2008 runtime that python 26 uses). A simple stub program written with Visual C++ 2005 that does essentially the same thing as the visual basic code also throws that error. If I compile with Visual C++ 2008 it runs fine.
So what do I do about it? I can't move away from VB, or even move to the 2008 version. I've already recompiled python 2.6 using MSVC 2005, and that wasn't enough. Do I have to track down all of the python packages the library uses and recompile those too? It seems like there must be an easier way.