Skip to content

Commit

Permalink
Merge pull request #148 from hpi-swa-lab/refactor/readme-compilerclass
Browse files Browse the repository at this point in the history
compilerclass info added
  • Loading branch information
codeZeilen committed May 19, 2023
2 parents 8f84d3a + ecb7506 commit 59a0e42
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ Metacello new

![Babylonian/S screenshot][babylonian_screenshot]

## How To Ensure Tracing for Own Classes
When using Babylonian in your own development, make sure to add
```Smalltalk
compilerClass
^ BPCompiler
```
on your class' side. Otherwise, the trace will disregard that class for performance reasons.


## Babylonian Printbugger
Due to their self-contained nature, traced values of multiple annotations are not entangled, meaning developers must manually reconstruct the program flow in order to know which trace values precede or succeed others in different annotations (possibly throughout different methods). To solve this problem, one can use the Printbugger. It sets probes and assertions - independent from their origin - into a chronological context. Hence, truthfully bringing printf-like tracing with live feedback to Babylonian Programming. The Printbugger additionally offers multiple features to enhance it from typical printf-traces:
- Start debugging from a certain point in the trace by clicking the pause button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ noValuesTextFor: aTrace

| text |
text := 'no values' , (aTrace hasTraceCompleted
ifTrue: ['']
ifTrue: [
aTrace probes
ifEmpty: [' - did you adjust compilerClass of this class and re-probe?']
ifNotEmpty:[' - expression reachable?']]
ifFalse: [' yet']).
^ (Text fromString: text)
addAttribute: (TextColor color: Color lightGray);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"newLineMorphFor:" : "pre 5/26/2021 20:46",
"newScrollPane" : "pre 1/6/2021 10:50",
"newVisualizeButtonFor:" : "jb 10/28/2021 18:57",
"noValuesTextFor:" : "pre 6/7/2021 15:07",
"noValuesTextFor:" : "joabe 5/16/2023 20:48",
"relevantTracesOf:do:" : "pre 5/3/2021 10:46",
"setExpressionButtonClicked" : "pre 9/22/2020 10:05",
"setLabelButtonClicked" : "lu 5/28/2021 21:37",
Expand Down

0 comments on commit 59a0e42

Please sign in to comment.