Ticket #1379 (new feature request)

Opened 6 years ago

Last modified 4 months ago

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

  Changed 6 years ago by igloo

  • priority changed from normal to high
  • milestone set to 6.8

Thanks, I can reproduce that here too.

  Changed 6 years ago by simonmar

  • owner set to simonmar

  Changed 6 years ago by simonmar

  • priority changed from high to normal
  • type changed from bug to feature request
  • milestone changed from 6.8 to 6.1

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.

  Changed 6 years ago by simonmar

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

  Changed 6 years ago by simonmar

  • owner simonmar deleted

  Changed 4 years ago by igloo

  • milestone changed from 6.10 branch to 6.12 branch

  Changed 3 years ago by igloo

  • milestone changed from 6.12 branch to 6.12.3

  Changed 3 years ago by igloo

  • priority changed from normal to low
  • milestone changed from 6.12.3 to 6.14.1

  Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

  Changed 2 years ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

  Changed 20 months ago by igloo

  • milestone changed from 7.2.1 to 7.4.1

  Changed 16 months ago by igloo

  • priority changed from low to lowest
  • milestone changed from 7.4.1 to 7.6.1

  Changed 9 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2

follow-up: ↓ 15   Changed 4 months ago by morabbin

  • failure set to None/Unknown

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

in reply to: ↑ 14   Changed 4 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.