Bug 142631 - Web Inspector: Add Conditional Type Breakpoint from Type Annotation
Summary: Web Inspector: Add Conditional Type Breakpoint from Type Annotation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-12 12:04 PDT by Joseph Pecoraro
Modified: 2016-12-13 15:34 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>