marcellourbani / vscode_abap_remote_fs

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

Unable to open registry key when run debug #182

Closed ghost closed 1 year ago

ghost commented 2 years ago

Here's another unrelated problem that has been happening to me for long. 😥 (not due to the latest update)

When trying to debug and run (F5) an abap object, vocode will popup this error message:

image

It may be caused by some local settings but I cannot figure it out. Any idea on this problem?

marcellourbani commented 2 years ago

No idea, works for me. Even under windows :P

marcellourbani commented 2 years ago

did you try creating a launch.json?

ghost commented 2 years ago

I'm not sure but I do have a workspace.json like this:

image

ghost commented 2 years ago

Just tried another laptop but sadly the error remains😥

marcellourbani commented 2 years ago

Works on mine. Are you an administrator or your laptop?

marcellourbani commented 2 years ago

I do think it reads the registry for the ideid and terminal id. Might have to change that

marcellourbani commented 2 years ago

@ToffeeNeko I suspect for now it only works if you tried debugging once in eclipse. I'll fix it

ghost commented 2 years ago

Yep I have admin right on both laptops and even started vscode in admin mode, and never installed eclipse on them. Waiting for your good news! 😂

marcellourbani commented 1 year ago

@ToffeeNeko can you please try importing this as a .reg file?

terminalId.reg

[HKEY_CURRENT_USER\SOFTWARE\SAP\ABAP Debugging]
"TerminalID"="D5FD3ED0E1D311EDB5EA0242AC120002"
ghost commented 1 year ago

@marcellourbani Much appreciated, it works! While pressing ctrl+shift+f11 I was directed to testing panel and there's no tests configured. Could you please show me some hints on how to debug run a function module with certain input variables? Like what we usually do in GUI debugger.

image

marcellourbani commented 1 year ago

re's no FM testing facility, so you can pick one of the following options:

sadly SAPGUI debugging is not supported(couldn't figure out how to drive the GUI )

ghost commented 1 year ago

🤔Sorry but got a bit confused... Let's say, now I have an RFC ZRFC1.fugr.abap opened in vscode and a breakpoint is also set in vscode; Then press F5 jump to debug page and attach to server, now how should I call this RFC so that it can stop at the breakpoint and show variables in vscode?

I tried to open this RFC in GUI using the same user and call it, but apparently it didn't stop. Do I need to configure things like user and external breakpoint in GUI before calling?

marcellourbani commented 1 year ago

Example (if I have to open SAPGUI I probably debug there, I mostly use this to debug unit tests or external calls from RFC/HTTP, but is good enough for a test): image Screenshot_20230424_223634

ghost commented 1 year ago

Perfect! Finally make it work! That's so kind of you! 🥰

marcellourbani commented 1 year ago

Sorry it took so long

ghost commented 1 year ago

No problem haha, you are much appreciated!