Bug 142631

Summary: Web Inspector: Add Conditional Type Breakpoint from Type Annotation
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, jonowells, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Joseph Pecoraro 2015-03-12 12:04:19 PDT
* SUMMARY
It would be useful to break in the debugger when a function gets an unexpected type. So that you can debug immediately when you are in that situation.

* THOUGHTS
1. Inspect page
2. Function shows type annotation for "Number" when you expected "Int"
3. Right click Type Annotation, and "Add Conditional Type Breakpoint"
4. Select the "Expected Types" (pre-populated with the current types in the Type Annotation)
  => Sets a Conditional Breakpoint
Comment 1 Radar WebKit Bug Importer 2015-03-12 12:04:40 PDT
<rdar://problem/20140352>