Some noticable part from the log:
Code: Select all
2021-03-16 20:07:42,755 - Gdb - INFO - CONS: '\\n'
2021-03-16 20:07:42,755 - Gdb - INFO - CONS: 'Thread 1 hit Temporary breakpoint 1, app_main () at ../main/blink.c:28\\n'
2021-03-16 20:07:42,756 - Gdb - INFO - CONS: '28\\t gpio_pad_select_gpio(BLINK_GPIO);\\n'
2021-03-16 20:07:42,756 - Gdb - INFO - NOTIFY: stopped {'bkptno': '1',
'disp': 'del',
'frame': {'addr': '0x400d2b07',
'args': [],
'file': '../main/blink.c',
'fullname': 'H:\\esp-blink\\blink\\main\\blink.c',
'func': 'app_main',
'line': '28'},
'reason': 'breakpoint-hit',
'stopped-threads': 'all',
'thread-id': '1'}
2021-03-16 20:07:42,756 - Gdb - DEBUG - new target state 1
2021-03-16 20:07:42,757 - Debug Adapter(Command Processor) - DEBUG - Processed command: launch
2021-03-16 20:07:42,757 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "response", "request_seq": 2, "success": true, "command": "launch", "seq": 11}
Here in the log it indicates "stopped", but it was not.
- The LED was blinking
- The serial "led on" "led off" message was output
- There was a "yellow arrow" displayed in VScode on the corresponding line, as if it was stopped
- The 'continue' button in the debug toolbas was active.
- Except for the 'stop' button, no buttons of the debug toolbar have any effect.
The situation is easy reproducable, press 'debug stop' -> toolbar disappears -> press F5 -> It looks as if it is stopped on the first line
within main(), but it isn't.