问题标签 [ptvs]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Debug with internal command window Python Tools and Vistual Studio 2013
I just installed Python Tools with Visual Studio 2013 (Shell) and whenever I run a debug of the program, a separate window pops up for the interpreter:
I can however run the program using the internal interactive console:
However this doesn't seem to stop at any breakpoints that I set in the code. Is there a way to force the system to use the internal console for debugging instead of using a separate windowed console?
python - 在 Python Visual Studio 下调试时编辑并继续?
我经常在调试时发现我的代码中有一个小错误,即变量拼写错误。必须从头开始重新启动程序非常耗时。
是否可以纠正这个错误,然后让程序从停止的地方继续运行?具体来说,我一直在使用 Visual Studio 作为 IDE 在 Python 中进行编码。
python - 在 Visual Studio 的 Python 工具中调试 GAE
在遵循本教程之后,我可以使用 Visual Studio 2012的 Python 工具运行我的 Google App Engine webapp2 应用程序而不会出现问题,甚至可以逐步执行服务器初始化代码,但是我无法让它在获取或发布方法时中断该网站已加载,类似于此视频中显示的方法。当我暂停调试器时,它总是以 wsgi_server.py 中的以下无限循环结束:main()
是否可以在 PTVS 中的 Google App Engine webapp2 应用程序中设置断点,这些断点是在从 localhost 加载页面时触发的?
编辑:使用 cprcrack 的设置,我能够成功运行 GAE,但是在加载主页时出现错误
发生此错误是因为我需要回滚到 Python 2.5 才能使用旧的 dev_appserver?
python - 仅适用于 OpenCV 库的 Visual Studio 错误自动完成的 Python 工具
我正在使用 PTVS(Visual Studio 的 Python 工具)。在我的项目中,我使用了一个外部库 OpenCV(在本地引用,不使用 pip/easy_install)。此库上的自动完成/智能感知仅始终显示无意义的字符(例如“Àt4èÚ”或“ÇEüÿÿÿÿè”)。
其他一切都很好,我可以运行我的代码,我可以自动完成其他库/函数。是什么原因造成的,我该如何解决?
提前致谢
python - 在 Visual Studio 的 Python 工具中定位错误行
在使用 Pydev(Eclipse) 时,如果我运行有错误的源代码,那么 Pydev 会提供一个链接,通过单击它来定位编辑器中的错误行(就像任何 IDE 一样)。但是,PTVS 似乎没有这样的功能。有没有办法使用像 Pydev 这样的 PTVS(Visual Studio 的 Python 工具)来定位错误行?
python - 如何从 Visual Studio PTVS 中运行命令?
我正在使用 Visual Studio 2012 和 PTVS 来玩弄 locustio 和 suds。
我已经在 Visual Studio 中使用 virtualenv 设置了一个环境,并安装了 locustio、suds 和所有相关的依赖项。
如果我要通过 Mac 或 Linux 中的命令行运行 locust,我会执行以下操作:
`蝗虫-f theFileToRun.py'
蝗虫会运行并打开一个本地托管的页面,我可以在其中控制蝗虫。
Django 有一个类似的设置,您可以runserver
从命令行键入,并且您的 django 项目是本地托管的。
我注意到 PTVS 在启动模式下列出了一个“Django Launcher”,我假设它会处理这个问题。
我如何(整齐地!)从 Visual Studio 中运行 locust 或其他 CLI 命令?
django - Python 工具 - 无法在解释器中运行命令
我正在尝试在我的 Visual Studio 环境中工作,但我似乎无法像本教程中显示的任何命令那样工作manage.py schemamigration movies --initial
,只会显示以下错误
我尝试使用项目上下文菜单中的Django Shell
, Validate Django App...
,Django Sync DB...
选项来打开解释器,Tools > Python Tools > Python 64-bit 2.7 Interactive
但这些都不起作用。
我正在使用带有 Python 工具 2.0 版的 Visual Studio Ultimate 2013 Preview。
python - 安装 Python 包 - IronPython
我想将 PRAW 包添加到 VS 中的 IronPython 解决方案中,但事实证明这很麻烦。这是我正在采取的步骤
- 右键单击 IronPython 环境,选择安装 python 包。
- 使用 pip 输入“Praw”
- 我收到一个提示,告诉我需要安装 pip。
然后我看到以下内容:
安装失败的原因是: AttributeError: 'module' object has no attribute '_getframe' Traceback (最近一次调用最后):
我该如何解决这个问题?有没有办法以不同的方式安装 pip 和 ironpython?有没有办法不必使用 pip 来安装包/库?我可以通过 Pip for python 2.7 很好地安装包。
python - Visual Studio 的 python 工具:“当前线程当前未运行代码或无法获取调用堆栈”
我正在为 Visual Studio 使用 python 工具,当我在类构造函数中放置一个断点时,我得到一个灰色选项卡,上面写着:
如何解决?
python - 如何使用 Iron Python 设计 Windows 窗体应用程序
我刚刚获得了带有 PTVS(Visual Studio 的 Python 工具)的 Visual Studio 2013 RC。我将如何使用 Visual Studio 在 Python 中内置的 Windows 窗体设计器?VS 有一个用于 WF 的 Iron Python 模板,但无法使用实际的 GUI 设计器。有没有办法用 python 获得 GUI 设计器功能?