---
title: "ABAP debugger"
author: "JavaFans"
date: "2011-03-01T17:14:15Z"
tags: ["UP"]
categories: ["编程语言"]
slug: "abap-debugger"
draft: false
lastmod: "2011-03-01T17:17:16Z"
id: 936466
url: "https://javafans.iteye.com/blog/936466"
---

Start debugger:

&lt;!--\[if !supportLists]--&gt;1.       &lt;!--\[endif]--&gt;Reports: run ABAP editor (SE38), and start the debugger by clicking the ‘Debug’ button

&lt;!--\[if !supportLists]--&gt;2.       &lt;!--\[endif]--&gt;Transaction

&lt;!--\[if !supportLists]--&gt;a.       &lt;!--\[endif]--&gt;SE93 (Maintain Transaction): input transaction code and then ‘Transaction code à Test à Debugging’

&lt;!--\[if !supportLists]--&gt;b.      &lt;!--\[endif]--&gt;Commands: /h, /hs (system debugging), /ha (step into ABAP code directly)

&lt;!--\[if !supportLists]--&gt;3.       &lt;!--\[endif]--&gt;Dialog Transaction

&lt;!--\[if !supportLists]--&gt;a.       &lt;!--\[endif]--&gt;Create transaction short cut on the desktop

&lt;!--\[if !supportLists]--&gt;b.      &lt;!--\[endif]--&gt;Run the transaction from system, and pop-up the dialog

&lt;!--\[if !supportLists]--&gt;c.       &lt;!--\[endif]--&gt;Drag the desktop short cut onto the dialog

&lt;!--\[if !supportLists]--&gt;4.       &lt;!--\[endif]--&gt;Background Job

&lt;!--\[if !supportLists]--&gt;a.       &lt;!--\[endif]--&gt;Jump into the background job via Process Overview (SM50)

&lt;!--\[if !supportLists]--&gt;                                                               i.      &lt;!--\[endif]--&gt;SM50, then choose the process and menu: ‘Program/Mode à Program à Debugging’

&lt;!--\[if !supportLists]--&gt;                                                             ii.      &lt;!--\[endif]--&gt;Enhance the code snippet into the code ‘DATA I TYPE I. WHILE I &lt;&gt; 1. ENDWHILE’, which can make sure the debug from the endless while.

&lt;!--\[if !supportLists]--&gt;b.      &lt;!--\[endif]--&gt;Restart the background job in debug mode

&lt;!--\[if !supportLists]--&gt;                                                               i.      &lt;!--\[endif]--&gt;SM37 (Job Overview)

&lt;!--\[if !supportLists]--&gt;                                                             ii.      &lt;!--\[endif]--&gt;Highlight the job and enter command ‘jdbg’ (job debugging)

Breakpoints: Can set conditions on breakpoints, e.g. ‘count’

&lt;!--\[if !supportLists]--&gt;1.       &lt;!--\[endif]--&gt;ABAP statement breakpoints (all session, all user)

&lt;!--\[if !supportLists]--&gt;2.       &lt;!--\[endif]--&gt;Session breakpoints (the same logon)

&lt;!--\[if !supportLists]--&gt;3.       &lt;!--\[endif]--&gt;Debugger breakpoints  (only internal session)

&lt;!--\[if !supportLists]--&gt;4.       &lt;!--\[endif]--&gt;Dynamic breakpoints

&lt;!--\[if !supportLists]--&gt;1.       &lt;!--\[endif]--&gt;Statements: e.g. WRITE

&lt;!--\[if !supportLists]--&gt;2.       &lt;!--\[endif]--&gt;Functions, Forms, Methods, stop at a specific module

&lt;!--\[if !supportLists]--&gt;3.       &lt;!--\[endif]--&gt;Exceptions

Watch points: after starting debugger

&lt;!--\[if !supportLists]--&gt;1.       &lt;!--\[endif]--&gt;Program + Field name: with conditions or not.

&lt;!--\[if !supportLists]--&gt;2.       &lt;!--\[endif]--&gt;For internal tables: \*itab\[] can trace the changes on row counts, etc