-
-
Notifications
You must be signed in to change notification settings - Fork 795
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 not accessible on commandline using Windows CMD #3793
Comments
Yes, this is a known issue. There is a bug with Windows CMD and Python/Twisted bridge when forwarding STDIN to the GDB subprocess. We plan to refactor our unified debugger soon and port it to native Python 3 Async I/O. We did something similar with PIO Home, see 6ff67ae So, now is a time for debugging! |
Hi @maxgerhardt, We've started a massive work on refactoring PlatformIO Unified Debugger. A lot of interesting are comings soon. Could you try the first 5.2.0a1? We moved away from Twisted and ported everything to native Python Async I/O. You should be able to debug now from CLI. Thanks! |
I upgraded to 5.2.0a3 and now the text input to the GDB client is working in a standard
Works very nicely! Great work! |
@maxgerhardt thanks for the feedback! Yes, it works super fast now. Especially when you try to debug 2nd time. We cache a lot of information to speed up debugging. |
Configuration
Operating system: Win10 x64
PlatformIO Version (
platformio --version
):PlatformIO Core, version 5.0.5a1
Description of problem
In the documentation, an example is shown where the command
pio debug --interface=gdb -x .pioinit
gives one a GDB shell.In Windows at least, this seems to be hardly working. In a Windows CMD terminal, as well as the VSCode PlatformIO CLI, one is just "stuck" after the GDB invocation, all characters are being "swallowed" without being displayed or reacted to. Also, no openOCD output is visible, which would be nice debug indiciator.
Steps to Reproduce
pio run -t upload
to verify upload via STLink is workingpio debug --interface=gdb -x .pioinit
to reproduce behaviorActual Results
No OpenOCD output, only 2 lines of GDB output, inaccessible shell.
Expected Results
Debugging starts over the CLI with OpenOCD output and controllable GDB shell.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
Debugging via VSCode works and starts correctly. That would be what I would expect as output from the shell command.
The text was updated successfully, but these errors were encountered: