|
Class: JavaScriptFunctionWithBreakpoints
Object
|
+--ExecutableFunction
|
+--CompiledCode
|
+--Method
|
+--JavaScriptFunction
|
+--JavaScriptFunctionWithBreakpoints
- Package:
- stx:libjavascript
- Category:
- Languages-JavaScript-Compiling & Parsing
- Version:
- rev:
1.7
date: 2019/09/17 21:26:03
- user: cg
- file: JavaScriptFunctionWithBreakpoints.st directory: libjavascript
- module: stx stc-classLibrary: libjavascript
support for line-Breakpoints
instances of me are created when line-breakpoints are placed.
The only function I serve is to provide the originalMethod information,
and an easy way to check for having a breakpoint (is breakpointed).
Caveat:
very stupid - had to repead the definition from MethodWithBreakpoints.
Probably it is a stupid idea, to implement breakpointed methods this way (by inheritance),
instead of having some attribute in the method (such as in an annotation).
May someone change that?...
copyrightCOPYRIGHT (c) 2013 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
originalMethod
-
return the original method; the one without breakpoints
-
originalMethod: something
-
enumerating
-
breakpointsDo: aBlock
-
(comment from inherited method)
Evaluate `aBlock` for every breakpoint installed in this method
misc
-
restoreOriginalMethod
-
remove myself - i.e. replace by the original method
(i.e. the one without line breakpoints)
queries
-
hasEnabledBreakpoints
-
true if any of my breakpoints is actually enabled
-
hasEnabledTracepoints
-
true if any of my tracepoints is actually enabled
-
isMethodWithBreakpoints
-
(comment from inherited method)
only redefined in MethodWithBreakpoints
|