-
-
Notifications
You must be signed in to change notification settings - Fork 445
Debugger restart error if debug icon is pressed after a stop #46
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
Comments
It appears to be an issue with Theia. When starting the very first debug session from the toolbar right after the app startup, I can see the following debug Config after the first start: {
"id": 0,
"configuration": {
"cwd": "/Users/akos.kitta/Documents/Arduino/xxx",
"name": "Arduino",
"request": "launch",
"type": "cortex-debug",
"executable": "/var/folders/k3/d2fkvv1j16v3_rz93k7f74180000gn/T/arduino-sketch-062822A8FE3586E9C342920A463F4CF4/xxx.ino.elf",
"servertype": "openocd",
"serverpath": "/Users/akos.kitta/Library/Arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd",
"armToolchainPath": "/Users/akos.kitta/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/",
"configFiles": [
"/Users/akos.kitta/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/variants/arduino_zero/openocd_scripts/arduino_zero.cfg"
],
"debuggerArgs": [],
"swoConfig": {
"enabled": false,
"decoders": [],
"cpuFrequency": 0,
"swoFrequency": 0,
"source": "probe"
},
"graphConfig": [],
"preLaunchCommands": [],
"postLaunchCommands": [],
"preAttachCommands": [],
"postAttachCommands": [],
"preRestartCommands": [],
"postRestartCommands": [],
"searchDir": [],
"toolchainPath": "/Users/akos.kitta/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/",
"toolchainPrefix": "arm-none-eabi",
"extensionPath": "/Users/akos.kitta/git/arduino-ide/plugins/cortex-debug/extension",
"flattenAnonymous": false,
"registerUseNaturalFormat": true
}
} Config after the second start: {
"id": 1,
"configuration": {
"cwd": "${workspaceRoot}",
"name": "Arduino",
"request": "launch",
"type": "cortex-debug",
"executable": "/var/folders/k3/d2fkvv1j16v3_rz93k7f74180000gn/T/arduino-sketch-062822A8FE3586E9C342920A463F4CF4/xxx.ino.elf",
"servertype": "openocd",
"serverpath": "/Users/akos.kitta/Library/Arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd",
"armToolchainPath": "/Users/akos.kitta/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/",
"configFiles": [
"/Users/akos.kitta/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/variants/arduino_zero/openocd_scripts/arduino_zero.cfg"
],
"debuggerArgs": [],
"swoConfig": {
"enabled": false,
"decoders": [],
"cpuFrequency": 0,
"swoFrequency": 0,
"source": "probe"
},
"graphConfig": [],
"preLaunchCommands": [],
"postLaunchCommands": [],
"preAttachCommands": [],
"postAttachCommands": [],
"preRestartCommands": [],
"postRestartCommands": [],
"searchDir": [],
"toolchainPath": "/Users/akos.kitta/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/",
"toolchainPrefix": "arm-none-eabi",
"extensionPath": "/Users/akos.kitta/git/arduino-ide/plugins/cortex-debug/extension",
"flattenAnonymous": false,
"registerUseNaturalFormat": true
}
} |
Found it; it is crazy. When one starts the debug session, the cortex-debug VSX will force to stop on entry. The debugger halts the debug session, and opens the editor of the Workaround for the time being:
This is the point where we need to customize the default Theia behavior: https://github.com/eclipse-theia/theia/blob/f8bcc19eba884cbd64112aeb691e8c97aad87197/packages/workspace/src/browser/workspace-variable-contribution.ts#L213. Also, it would be great to configure |
Fall back to the current sketch, if `currentWidget` points to a file outside of the workspace. Closes: #46 Signed-off-by: Akos Kitta <[email protected]>
Fall back to the current sketch, if `currentWidget` points to a file outside of the workspace. Closes: #46 Signed-off-by: Akos Kitta <[email protected]>
Fall back to the current sketch, if `currentWidget` points to a file outside of the workspace. Closes: #46 Signed-off-by: Akos Kitta <[email protected]>
Describe the bug
Some times the debug button behavior triggers a failed launch of
openocd
probably due to a bug in the GUI codeTo Reproduce
Steps to reproduce the behavior:
Please note that the last 3 steps may need to be performed a few times before seeing the failure.
Reproducibility is not consistent
Screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: