Opened 8 years ago

Last modified 4 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: 7.12.1
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 Revisions:

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 (18)

comment:1 Changed 8 years ago by igloo

  • Milestone set to 6.8
  • Priority changed from normal to high

Thanks, I can reproduce that here too.

comment:2 Changed 8 years ago by simonmar

  • Owner set to simonmar

comment:3 Changed 8 years ago by simonmar

  • Milestone changed from 6.8 to 6.1
  • Priority changed from high to normal
  • Type changed from bug to feature 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 8 years ago by simonmar

  • Summary changed from Panic in new debugging tools to Allow breakpoints and single-stepping for functions defined interactively

comment:5 Changed 8 years ago by simonmar

  • Owner simonmar deleted

comment:6 Changed 6 years ago by igloo

  • Milestone changed from 6.10 branch to 6.12 branch

comment:7 Changed 5 years ago by igloo

  • Milestone changed from 6.12 branch to 6.12.3

comment:8 Changed 5 years ago by igloo

  • Milestone changed from 6.12.3 to 6.14.1
  • Priority changed from normal to low

comment:9 Changed 4 years ago by igloo

  • Milestone changed from 7.0.1 to 7.0.2

comment:10 Changed 4 years ago by igloo

  • Milestone changed from 7.0.2 to 7.2.1

comment:11 Changed 4 years ago by igloo

  • Milestone changed from 7.2.1 to 7.4.1

comment:12 Changed 3 years ago by igloo

  • Milestone changed from 7.4.1 to 7.6.1
  • Priority changed from low to lowest

comment:13 Changed 3 years ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:14 follow-up: Changed 2 years ago by morabbin

  • Type of failure set to None/Unknown

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

comment:15 in reply to: ↑ 14 Changed 2 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 10 months ago by thoughtpolice

  • Milestone changed from 7.6.2 to 7.10.1

Moving to 7.10.1.

comment:17 Changed 4 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.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 4 months 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.

Note: See TracTickets for help on using tickets.