JuliaDebug / JuliaDebug/JuliaInterpreter.jl
Function breakpoints signature is a bit strange
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 168
- Forks
- 42
- Avg merge
- 22m
- Merged PRs (30d)
- 2
Description
It seems that the type signatures for function breakpoints work like this (I might be wrong): use the types to figure out which method would handle those particular types, and then set a breakpoint on that method. Now this breakpoint will even break if the same method is called with quite a different set of arguments. For example, say we have a function foo(a). It will capture calls with any type for a, so a function breakpoint with type signature String will now also break when this function is called with say an Int.
Wouldn't it be more natural if these type signature breakpoints worked essentially like dispatch, i.e. a function breakpoint on foo with a type signature of Type{String} would only break if foo is called with a String?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not identify files, tests, or an entry point. First locate the function-breakpoint handling for type signatures and compare its matching behavior with Julia dispatch; done means a breakpoint on foo with Type{String} fires only for String calls, with tests covering the distinction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100