DebugReport

Description

You can generate more helpful debug log from Notifier or Debugger.

Details

Source
GitHub
Dialect
pharo (40% confidence)
License
MIT
Stars
2
Forks
1
Created
April 16, 2018
Updated
Dec. 12, 2024
Topics
debugging-tool pharo smalltalk

Categories

IDE / Dev Tools

README excerpt

# DebugReport
You can generate more helpful debug log from Spec Debugger.


## Supported Smalltalk Version

Pharo Smalltalk 5, 6, 7, 8, 9, 10, 11, 12

## Installation

```smalltalk
"Pharo 12.x"
Metacello new
    baseline: 'DebugReport';
    repository: 'github://kaminami/DebugReport:v7.0/repository';
    load.

"Pharo 10.x"
Metacello new
    baseline: 'DebugReport';
    repository: 'github://kaminami/DebugReport:v6.0/repository';
    load.
    
"Pharo 9.x"
Metacello new
    baseline: 'DebugReport';
    repository: 'github://kaminami/DebugReport:v5.0/repository';
    load.

"Pharo 8.x"
Metacello new
    baseline: 'DebugReport';
    repository: 'github://kaminami/DebugReport:v4.0/repository';
    load.

"Pharo 7.x"
Metacello new
    baseline: 'DebugReport';
    repository: 'github://kaminami/DebugReport:v3.1/repository';
    load.


"Pharo 5.x, 6.x"
Metacello new
    baseline: 'DebugReport';
    repository: 'github://kaminami/DebugReport:v2.4/repository';
    load.
```

Local Reporsitory

```smalltalk
| pathToPackageDirectory |
"edit to match the path to your chosen package directory"
pathToPackageDirectory := './repository/' asFileReference asAbsolute fullName.
Metacello new
  baseline: 'DebugReport';
  repository: 'filetree://', pathToPackageDirectory;
  load.
```

## Usage

```smalltalk
[ 1/0 ] on: Error do: [ :ex | ex outputDebugReport ].
```

## Output Example
See: example/DebugReport-20200501152913.zip


## Settings
```smalltalk
DRSettings autoOutputMode: false. "default"
DRSettings autoOutputMode: true.

DRSettings useZipOutputter. "default"
DRSettings useFileOutputter.

DRSettings outputDirectoryPath: '.'. "default"
DRSettings outputDirectoryPath: './report'.
DRSettings outputDirectoryPath: '/Users/kaminami/temp/report'.

DRSettings outputLimit: 0. "default unlimited"
DRSettings outputLimit: 10.
```

## Etc
```smalltalk
"output current context"
thisContext outputDebugReport.

"output handled context"
[ 1 zork ] on: Exception do: [:ex | ex outputDebugReport ]
```
← Back to results