-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging #110
Comments
That won't work. You don't attach to a gdb process but to either gdbserver (on the console via Please see https://github.com/OlegKunitsyn/gnucobol-debug#attaching-to-a-running-process for details. |
now I have added an ACCEPT and run the executable. |
Please post launch.json and the way you've checked the COBOL PID and a screenshot from vscode, then we're likely able to help more. |
Can you attach to the process from cmd? What is the output of |
It just uses what is in PATH of vscode. You can test that when opening a terminal in vcode and do the same check there. But you can setup the path, too in the launch configuration, have a look at |
I've rechecked and can reproduce the bad "getThreads" message (again only if explicit "verbose" was activated). The main issue here is that @OlegKunitsyn seems to want to always call |
Thanks a million! I was able to start the debugger. Thats my launch.json: I agree with you, it would be nice to have the option to skip the compiler, because the following doesn't work:
|
Nice. I think an attach should also work (with for whatever reason a recompilation) when adjusting the launch configuration a bit - @FrankGun please give it a try and report back (and please edit your post above to use a code marker for the json part, easiest would be to add ```jsonc at the start of the block and the same without a language identifier at the end. |
Hi,
I am not able to connect to a running gdb process.
Running at Windows 64 bit.
I have running a gdb process in a cmd box.
I start VS Code with gnucobol-debug extension and try to connect to the pid of the gdb process.
The debug console shows only message "getThreads".
Can you please give me any suggestions?
Best regards
Frank
The text was updated successfully, but these errors were encountered: