zhaoh 发表于 2015-9-21 10:12:38

SAP debug的几种方式

  这几种debug的方式有些是通过摸索得知,有些是参考别人的一些分享,在这边做下总结
  1. 直接在程序中设断点
  这种方式想必大家都知道了,在se38里面打上breakpoint,程序运行到该处即进入debug模式
  2.background Job的debug
  进入SM37 查找到自己想要debug的后台程序,这里运行完毕或者正在运行的均可进入debug
  查找到后打中job前面的勾 然后在控制框输入JDBG回车,即进入debug
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard1.png
  
  
  
  
  
  
  
  
  
  
  
  
  3.在程序运行界面进入debug
  在程序的控制框输入/H,运行程序的时候就会进入debug
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard2.png
  
  
  
  
  4.正在运行的程序进入debug
  进入sm50 找到需要进入debug的 process 然后点工具栏 Program/Mode->program->debuging 即可进入Debug
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard3.png
  5.call function in update task的debug
  我们在 update task的 function里面设断点的话 正常是进不去debug的
  我们在debugger里面 路径 setting-> Display/change debugger settings
  这里面会有 update debugging选上以后 我们运行到 update task的function 后会自动开辟新的session进行debug
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard4.png
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard5.png
  6.sm13error message的debug
  有些时候我们在程序运行的时候会报一些update的 error message
  进入sm13可以找到相应的item 就可以进行debug
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard6.png
  双击我们需要的debug进去
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard7.png
  有个debug的按钮 就可以进去debug了
  7.RFC的Debug
  在RFC所在系统 用RFC连接所用的用户账号去设断点
  然后再进行debug就可以了
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard8.png
http://scnblogs.techweb.com.cn/worldjay/files/2012/01/clipboard9.png
  8.针对一些弹出窗口的debug
  可能有时候我们程序运行过程中会出现一些弹出窗口 没有输入/H的地方,但是我们要debug怎么办?
  新建一个txt文档 内容如下, 当我们需要debug某个窗口的时候直接把这个txt文档拖入对应窗口即可实现debug
  
Command=/H
  Title=Debugger
Type=SystemCommand
  这边写日志有点累 插入截图太累了。。。
  
  
  
  转自:http://scnblogs.techweb.com.cn/worldjay/archives/79.html
  
页: [1]
查看完整版本: SAP debug的几种方式