3

Closed

Can not create conditional breakpoint in pytools 1.5 on VS2012

description

When trying to create a conditional breakpoint in an IronPython or Python project in pytools 1.5.50917.0 in VS 2012 11.0.51106.01 the following message is shown:
"Python does not support breakpoint conditions."

According to http://pytools.codeplex.com/wikipage?title=PTVS%20FAQ and http://pytools.codeplex.com/discussions/393376 this should be working. Has support been deliberately removed?

file attachments

Closed Aug 26, 2013 at 10:13 PM by Zooba
Fixed (not sure which changeset)

comments

sopelt wrote Dec 17, 2012 at 8:48 AM

second screenshot

dinov wrote Feb 11, 2013 at 4:48 PM

You can work around this by modifying the PTVS .pkgdef file to let VS know the feature is supported. You'll find that in [INSTALL_LOCATION]\Extensions\Microsoft\Python Tools for Visual Studio\1.5\Microsoft.PythonTools.pkgdef.

INSTALL_LOCATION is either %localappdata%\microsoft\VisualStudio\11.0 (if you did a per-user install from the advanced page in the installer) or more likely C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ or wherever you installed Visual Studio.

In that file you just need to find:

[$RootKey$\AD7Metrics\Engine{EC1375B7-E2CE-43E8-BF75-DC638DE1F1F9}]

And add another value below it like:

"ConditionalBP"=dword:00000001

below the '"CallstackBP"=dword:00000001' and then you just need to run "devenv.exe /setup" so that VS will pick up the change.

Zooba wrote Feb 27, 2013 at 10:13 PM

Fixed by Dino - in 2.0 feature branch.

sopelt wrote Apr 12, 2013 at 9:17 AM

Tried using 2.0.60306.0 ... works!

Thank you.