Opened 10 years ago

Last modified 13 months ago

#1379 new feature request

Allow breakpoints and single-stepping for functions defined interactively

Reported by: Michael D. Adams Owned by:
Priority: lowest Milestone:
Component: GHCi Version: 6.7
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Steps to reproduce (from ghc-HEAD sources for 25 May 2007):

Prelude> let fib n = if n < 2 then 1 else fib (n-1) + fib (n-2)
Prelude> let main = print $ fib 30
Prelude> :break fib
ghc-6.7.20070515: panic! (the 'impossible' happened)
  (GHC version 6.7.20070515 for i386-unknown-linux):
        nameModule fib{v apa}

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Prelude>

Change History (20)

comment:1 Changed 10 years ago by igloo

Milestone: 6.8
Priority: normalhigh

Thanks, I can reproduce that here too.

comment:2 Changed 10 years ago by simonmar

Owner: set to simonmar

comment:3 Changed 10 years ago by simonmar

Milestone: 6.86.1
Priority: highnormal
Type: bugfeature request

I fixed the panic, but it's still not possible to do what you wanted to do, namely set a breakpoint on a function defined interactively. I'll leave that as a feature request, since it's not straightforward to implement right now.

comment:4 Changed 10 years ago by simonmar

Summary: Panic in new debugging toolsAllow breakpoints and single-stepping for functions defined interactively

comment:5 Changed 10 years ago by simonmar

Owner: simonmar deleted

comment:6 Changed 8 years ago by igloo

Milestone: 6.10 branch6.12 branch

comment:7 Changed 7 years ago by igloo

Milestone: 6.12 branch6.12.3

comment:8 Changed 7 years ago by igloo

Milestone: 6.12.36.14.1
Priority: normallow

comment:9 Changed 6 years ago by igloo

Milestone: 7.0.17.0.2

comment:10 Changed 6 years ago by igloo

Milestone: 7.0.27.2.1

comment:11 Changed 5 years ago by igloo

Milestone: 7.2.17.4.1

comment:12 Changed 5 years ago by igloo

Milestone: 7.4.17.6.1
Priority: lowlowest

comment:13 Changed 4 years ago by igloo

Milestone: 7.6.17.6.2

comment:14 Changed 4 years ago by morabbin

Type of failure: None/Unknown

Fold this into #1377 (aggregate ticket for GHCi debugger tasks)?

comment:15 in reply to:  14 Changed 4 years ago by simonmar

Replying to morabbin:

Fold this into #1377 (aggregate ticket for GHCi debugger tasks)?

It's generally better to have separate tickets for things, so we can fix them individually.

comment:16 Changed 3 years ago by thoughtpolice

Milestone: 7.6.27.10.1

Moving to 7.10.1.

comment:17 Changed 2 years ago by thoughtpolice

Milestone: 7.10.17.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:18 Changed 2 years ago by thoughtpolice

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:19 Changed 18 months ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

comment:20 Changed 13 months ago by thomie

Milestone: 8.0.1
Note: See TracTickets for help on using tickets.