简体   繁体   English

调试器中的 ABAP 内存 ID 或参数值

[英]ABAP Memory ID or PARAMETER values in debugger

Some of the ABAP programs that I have to debug use system memory to pass data to other programs using the following syntax:我必须调试的一些 ABAP 程序使用系统内存使用以下语法将数据传递给其他程序:

EXPORT: VARIABLE_NAME  TO MEMORY ID 'NAME_OF_MEMORY_OBJECT'.

How do I check the value of these memory IDs in the debugger?如何在调试器中检查这些内存 ID 的值?


Relatedly, how can I view the value of parameter set with:相关地,我如何查看参数集的值:

SET PARAMETER 'ZPR' FIELD lv_project.

Memory IDs内存 ID

These memory IDs can be accessed in the debugger, but the option isn't accessible by default in the "new" Debugger.这些内存 ID 可以在调试器中访问,但默认情况下在“新”调试器中无法访问该选项。 To display them you have two options:要显示它们,您有两个选择:

  • In the new Debugger, change one of the tools you're using.在新的调试器中,更改您正在使用的工具之一。 Do this by clicking the "New Tool" or "Replace Tool" that you can see at the top of the vertical button column on the right of each subwindow.通过单击“新工具”或“替换工具”来执行此操作,您可以在每个子窗口右侧的垂直按钮列顶部看到它们。 Open the Special Tools folder in the tree and select "System Areas (Internal Only)".打开树中的“特殊工具”文件夹并选择“系统区域(仅限内部)”。 In the second tab of this tool you can now see a list of areas.在此工具的第二个选项卡中,您现在可以看到区域列表。 Double-click the MEMORIES (" EXPORT/IMPORT memories ") area or manually enter it in the Area input field to open the list of active memory IDs.双击MEMORIES (“导出/导入内存”)区域或在区域输入字段中手动输入以打开活动内存 ID 列表。 Click through on any one to see its hexadecimal value.单击任何一个以查看其十六进制值。
  • In the menu bar, open Debugger and select "Switch to Classic Debugger".在菜单栏中,打开调试器并选择“切换到经典调试器”。 Once it opens, find the following in the menu bar: Goto, System Areas, ABAP Memory.打开后,在菜单栏中找到以下内容:转到、系统区域、ABAP 内存。 The system areas will be displayed with the MEMORIES area selected by default.系统区域将显示为默认选择的MEMORIES区域。

Parameters参数

If you want to view the PARAMETERs that were set instead of memory IDs, the procedure is almost exactly the same.如果要查看设置的 PARAMETER 而不是内存 ID,步骤几乎完全相同。 However, instead of opening the MEMORIES system area, open the SMEM (" SAP memory (SPA-GPA) ") area.但是,不是打开MEMORIES系统区域,而是打开SMEM (“ SAP 内存(SPA-GPA) ”)区域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM