Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0855975c
Commit
0855975c
authored
Apr 18, 2007
by
Simon Marlow
Browse files
add ':show context' which lists the current stack of breakpoint contexts
parent
a2d98d07
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/ghci/InteractiveUI.hs
View file @
0855975c
...
...
@@ -1200,7 +1200,8 @@ showCmd str =
[
"bindings"
]
->
showBindings
[
"linker"
]
->
io
showLinkerState
[
"breaks"
]
->
showBkptTable
_
->
throwDyn
(
CmdLineError
"syntax: :show [modules|bindings]"
)
[
"context"
]
->
showContext
_
->
throwDyn
(
CmdLineError
"syntax: :show [modules|bindings|breaks]"
)
showModules
=
do
session
<-
getSession
...
...
@@ -1234,6 +1235,13 @@ showBkptTable = do
activeBreaks
<-
getActiveBreakPoints
printForUser
$
ppr
activeBreaks
showContext
::
GHCi
()
showContext
=
do
st
<-
getGHCiState
printForUser
$
vcat
(
map
pp_resume
(
resume
st
))
where
pp_resume
(
span
,
_
,
_
)
=
ptext
SLIT
(
"Stopped at"
)
<+>
ppr
span
-- -----------------------------------------------------------------------------
-- Completion
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment