Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Support for conditional breakpoints #23

Merged
merged 2 commits into from
Jan 24, 2018

Conversation

karthiknadig
Copy link
Member

Implements #13

ptvsd/wrapper.py Outdated
for src_bp in src_bps:
line = src_bp['line']
vsc_bpid = self.bp_map.add(
lambda vsc_bpid: (path, vsc_bpid))
msg = msgfmt.format(vsc_bpid, path, line)
try:
condition = src_bp['condition']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could simplify this by doing src_bp.get('condition', None), then you don't need try/except here at all, and there's a single format.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. will update

@karthiknadig karthiknadig merged commit 1aafe4c into microsoft:master Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants