Skip to content

Commit db597fa

Browse files
authored
Update readme
1 parent 31dc473 commit db597fa

File tree

3 files changed

+43
-17
lines changed

3 files changed

+43
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ and [ISO Date Format](https://www.iso.org/iso-8601-date-and-time-format.html).
1515
### Fixed
1616

1717

18-
## Version [1.0.0] - 2022-01-01
18+
## Version [1.0.0] - 2025-04-23
1919

2020
Initial Release.
2121

2222

23-
[Unreleased]: https://github.com/Marc-Bernard-Tools/ABAP-.../compare/1.0.0...main
24-
[1.0.0]: https://github.com/Marc-Bernard-Tools/ABAP-.../releases/tag/1.0.0
23+
[Unreleased]: https://github.com/Marc-Bernard-Tools/Debugger-Ext-for-abapGit/compare/1.0.0...main
24+
[1.0.0]: https://github.com/Marc-Bernard-Tools/Debugger-Ext-for-abapGit/releases/tag/1.0.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright 2023 Marc Bernard <https://marcbernardtools.com/>
3+
Copyright 2025 Marc Bernard <https://marcbernardtools.com/>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,60 @@
1-
![Version](https://img.shields.io/endpoint?url=https://shield.abap.space/version-shield-json/github/Marc-Bernard-Tools/ABAP-XXX/src/zcl_XXX.clas.abap/c_version&label=Version&color=blue)
1+
![Version](https://img.shields.io/endpoint?url=https://shield.abap.space/version-shield-json/github/Marc-Bernard-Tools/Debugger-Ext-for-abapGit/src/zabapgit_ext_debugger.enho.fa4cfd43.abap/version&label=Version&color=blue)
22

3-
[![License](https://img.shields.io/github/license/Marc-Bernard-Tools/ABAP-XXX?label=License&color=green)](LICENSE)
3+
[![License](https://img.shields.io/github/license/Marc-Bernard-Tools/Debugger-Ext-for-abapGit?label=License&color=green)](LICENSE)
44
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?color=green)](https://github.com/Marc-Bernard-Tools/.github/blob/main/CODE_OF_CONDUCT.md)
5-
[![REUSE Status](https://api.reuse.software/badge/github.com/Marc-Bernard-Tools/ABAP-XXX)](https://api.reuse.software/info/github.com/Marc-Bernard-Tools/ABAP-XXX)
5+
[![REUSE Status](https://api.reuse.software/badge/github.com/Marc-Bernard-Tools/Debugger-Ext-for-abapGit)](https://api.reuse.software/info/github.com/Marc-Bernard-Tools/Debugger-Ext-for-abapGit)
66

7-
# XXX
7+
# Debugger Extension for abapGit
88

9-
<description>
9+
Enhancement for the ABAP debugger to jump to the correct trigger location for exception classes that use static methods to raise exceptions like `ZCX_ABAPGIT_EXCEPTION` used in abapGit.
1010

1111
Made by [Marc Bernard Tools](https://marcbernardtools.com/) giving back to the [SAP Community](https://community.sap.com/)
1212

1313
NO WARRANTIES, [MIT License](LICENSE)
1414

15+
## Background
16+
17+
The ABAP debugger has a feature to "show the trigger location" of the last raised exception. The feature works well when `RAISE EXCEPTION` is used directly. However, if you embed `RAISE EXCEPTION` in a static method of your exception class, for example in `ZCX_ABAPGIT_EXCEPTION=>RAISE(...)`, then the debugger will jump to the location inside your static method and not to the location of the method call.
18+
19+
You can implement a `GET_SOURCE_POSITION` method in your exception class, but unfortunately, the debugger does not call it :shrug:.
20+
1521
## Usage
1622

17-
<description>
23+
After installing this enhancement, the debugger will check if an exception class contains the `SRC_INFO` (or `MS_SRC_INFO`) attribute and use it to determine the trigger location of the exception.
1824

1925
## Prerequisites
2026

21-
SAP Basis 7.02 or higher
27+
- SAP Basis 7.02 or higher
28+
- Add `SRC_INFO` attribute to your exception class
2229

23-
## Installation
30+
```abap
31+
DATA src_info TYPE tpda_sys_srcinfo.
32+
```
33+
34+
- Add `GET_SOURCE_POSITION` method in your exception class
2435
25-
You can install ABAP XXX using [abapGit](https://github.com/abapGit/abapGit) either creating a new online repository for https://github.com/Marc-Bernard-Tools/ABAP-XXX or downloading the repository [ZIP file](https://github.com/Marc-Bernard-Tools/ABAP-XXX/archive/main.zip) and creating a new offline repository.
36+
- Add the following to the end of the `CONSTRUCTOR` method of your exception class
2637
27-
Recommended SAP package: `$XXX`.
38+
```abap
39+
METHOD constructor.
40+
41+
"...
42+
43+
" Save for debugger
44+
get_source_position(
45+
IMPORTING
46+
program_name = src_info-program
47+
include_name = src_info-include
48+
source_line = src_info-line ).
49+
50+
ENDMETHOD.
51+
```
52+
53+
## Installation
2854
29-
```abap
55+
You can install the Debugger Extension for abapGit using [abapGit](https://github.com/abapGit/abapGit) either creating a new online repository for https://github.com/Marc-Bernard-Tools/Debugger-Ext-for-abapGit or downloading the repository [ZIP file](https://github.com/Marc-Bernard-Tools/Debugger-Ext-for-abapGit/archive/main.zip) and creating a new offline repository.
3056
31-
```
57+
Recommended SAP package: `$ABAPGIT-EXT-DEBUGGER`.
3258
3359
## Contributions
3460
@@ -38,7 +64,7 @@ All contributions are welcome! Read our [Contribution Guidelines](CONTRIBUTING.m
3864
3965
Made with :heart: in Canada
4066
41-
Copyright 2023 Marc Bernard <https://marcbernardtools.com/>
67+
Copyright 2025 Marc Bernard <https://marcbernardtools.com/>
4268
4369
Follow [@marcfbe](https://twitter.com/marcfbe) on Twitter
4470

0 commit comments

Comments
 (0)