Stepping through program execution and breaking at predefined conditions...
Move to
=> <=
Darueber Spitze
See also
HelloWorld
Use Parameters
Directives
Debugger
Arithmetic
Constraints
File From Server
AppletLoadsFile
GetURL
Client-Server with Sockets
Date
ExecProcess
ExecProcess_2
GUI
GuiEvents
Gui Image
Interactive
JavaToMinerva_1
JavaToMinerva_2
JavaToMinerva_3
JavaToMinerva_4
JavaToMinerva_5
JavaToMinerva_6
Java Applet Uses Minerva
JavaArrays
MinervaToJava
MinervaToJavaScript
MinervaToJava_1
MinervaToJava_2
MinervaToJava_3
MinervaToJava_4
Reflection
Servlet
JDBC
Internationalization
StartupArchive
IF Computer > MINERVA > Example Programs > MINERVA Features > Debugger

Debugger

Stepping through program execution and breaking at predefined conditions is possible with the MINERVA debugger.

The debugger is operationally simple and compiled right into the MINERVA binary (for techies: its not a meta-program).

To compile a program fragment for execution under the MINERVA debugger use minervac -debug.

The following example shows the use of breakpoint and the invokation. For details refer to Compile, Go and the other files of this directory.

start :- breakpoint(app/3), % Breakpoint breakif((app(A,B,C) :- C = [c])), % Condition debug(app([1,2], [ b,c], L)). % Invokation

app([],L,L). app([E|L1],L2,[E|L3]) :- app(L1,L2,L3).

This is how a first step and the the help screen look like:

MINERVA 2.1 Development Server (c) 1996,99 IF Computer http://www.ifcomputer.com/MINERVA mailto:support@ifcomputer.com MINERVA License for evaluation purposes only

?- start. CALL app([1,2],[b,c],_554) trace: h s)tep single pass n)ext pass over f)ail force 'fail' c)ont continue till next breakpoint b)acktrace show stack backtrace (activation stack) a)bort abort e)scape call 'break/0' h)elp show this help message

app([1,2],[b,c],_554) trace:

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Sprache
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/ExamplePrograms/MinervaFeatures/Debugger/home_de.html
published 2008/7/21 update 2002/3/20 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS