Opened 7 years ago

Last modified 15 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.6.2
Component: GHCi Version: 6.7
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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

comment:1 Changed 7 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 7 years ago by simonmar

  • Owner set to simonmar

comment:3 Changed 7 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 7 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 7 years ago by simonmar

  • Owner simonmar deleted

comment:6 Changed 5 years ago by igloo

  • Milestone changed from 6.10 branch to 6.12 branch

comment:7 Changed 4 years ago by igloo

  • Milestone changed from 6.12 branch to 6.12.3

comment:8 Changed 4 years ago by igloo

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

comment:9 Changed 3 years ago by igloo

  • Milestone changed from 7.0.1 to 7.0.2

comment:10 Changed 3 years ago by igloo

  • Milestone changed from 7.0.2 to 7.2.1

comment:11 Changed 3 years ago by igloo

  • Milestone changed from 7.2.1 to 7.4.1

comment:12 Changed 2 years ago by igloo

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

comment:13 Changed 19 months ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:14 follow-up: Changed 15 months 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 15 months 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.

Note: See TracTickets for help on using tickets.