marcellourbani / vscode_abap_remote_fs

Remote filesystem for ABAP systems
MIT License
170 stars 28 forks source link

External breakpoints #190

Closed maggiv8 closed 1 year ago

maggiv8 commented 1 year ago

Hi there,

is there any way to set external breakpoints? It would come in very handy when testing ABAP code incorporated in a SAP Standard business process (e.g. when implementing a BAdI).

Thank you. Kind regards Christoph

marcellourbani commented 1 year ago

Pretty easy, just click on the left of the code and start the debugger with F5. See here. No sapgui debugging though, only RFC/HTTP/abap unit

maggiv8 commented 1 year ago

Hi Marcello,

thank you for your quick response. Overall, the plugin is really impressive. The challenge and question I am having is: I am triggering a process out of SAP GUI or a web service (e.g. to create an account). This process (e.g. account creation) invokes a BAdI implementation. The process is executed with my user, but obviously not out of VS Studio. In SAPGUI I can set an external breakpoint for this user, so whenever this user invokes the BAdI implementation via the execution of this particular process, the system stops at the external breakpoint for this user. I am unusre how to do this with your plugin.

Thank you for your help. Kind regards Christoph

marcellourbani commented 1 year ago

It's not supported That requires controlling the sapgui and I'm not quite sure how.

If you call it over rfc/http or an unit test triggered in the plugin it does, but no sapgui

On Mon, 29 May 2023, 19:36 maggiv8, @.***> wrote:

Hi Marcello,

thank you for your quick response. Overall, the plugin is really impressive. The challenge and question I am having is: I am triggering a process out of SAP GUI or a web service (e.g. to create an account). This process (e.g. account creation) invokes a BAdI implementation. The process is executed with my user, but obviously not out of VS Studio. In SAPGUI I can set an external breakpoint for this user, so whenever this user invokes the BAdI implementation via the execution of this particular process, the system stops at the external breakpoint for this user. I am unusre how to do this with your plugin.

Thank you for your help. Kind regards Christoph

— Reply to this email directly, view it on GitHub https://github.com/marcellourbani/vscode_abap_remote_fs/issues/190#issuecomment-1567415467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASW6HLLYFKNN7PDHJOKUSLXITUDJANCNFSM6AAAAAAYTAB22U . You are receiving this because you commented.Message ID: @.***>