-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a custom Debug Adapter (VSC-250) (#45)
* Added a custom Debug Adapter * fix old configs remove build before debug * fix debug adapter unit test * DA python pkgs check (#3) * read Cmakelists file for project name (VSC-248) (#43) read build project_description json file for project name * Feature/localization kv val (VSC-226) (VSC-246) (#41) * add gulp i18n validation and src missing key log * rm unused i18n field, add unknown field (#48) * v0.1.4 * Added a custom Debug Adapter * fix old configs remove build before debug * removed outdated extension.test.ts * fix debug adapter unit test * removed repeated options * removed redundant requirements.txt * made `Upload testing.results.log` always executable * add adapter python reqs checking Co-authored-by: Soumesh Banerjee <soumeshbanerjee@live.com> Co-authored-by: Andrey Gramakov <mail@agramakov.me> * Fix/da merge (#4) * read Cmakelists file for project name (VSC-248) (#43) read build project_description json file for project name * Feature/localization kv val (VSC-226) (VSC-246) (#41) * add gulp i18n validation and src missing key log * rm unused i18n field, add unknown field (#48) * v0.1.4 * Added a custom Debug Adapter * fix old configs remove build before debug * fix debug adapter unit test * DA python pkgs check (#3) * read Cmakelists file for project name (VSC-248) (#43) read build project_description json file for project name * Feature/localization kv val (VSC-226) (VSC-246) (#41) * add gulp i18n validation and src missing key log * rm unused i18n field, add unknown field (#48) * v0.1.4 * Added a custom Debug Adapter * fix old configs remove build before debug * removed outdated extension.test.ts * fix debug adapter unit test * removed repeated options * removed redundant requirements.txt * made `Upload testing.results.log` always executable * add adapter python reqs checking Co-authored-by: Soumesh Banerjee <soumeshbanerjee@live.com> Co-authored-by: Andrey Gramakov <mail@agramakov.me> * fix merge issues * log adapter output Co-authored-by: Soumesh Banerjee <soumeshbanerjee@live.com> Co-authored-by: Andrey Gramakov <mail@agramakov.me> * An dr/feature/debug adapter (#5) Fix Espressif master merge conflicts * debug_backend package: removed everything but pygdbmi from the Pipfile * Fix/da conflict (#6) * read Cmakelists file for project name (VSC-248) (#43) read build project_description json file for project name * Feature/localization kv val (VSC-226) (VSC-246) (#41) * add gulp i18n validation and src missing key log * rm unused i18n field, add unknown field (#48) * v0.1.4 Co-authored-by: Soumesh Banerjee <soumeshbanerjee@live.com> * Run prettier * yarn audit fix Co-authored-by: brian@espressif.com <brian@espressif.com> Co-authored-by: Brian A. Ignacio <brianignacio5@gmail.com> Co-authored-by: Soumesh Banerjee <soumeshbanerjee@live.com>
- Loading branch information
1 parent
d1f5fd1
commit 7178fc8
Showing
98 changed files
with
24,933 additions
and
589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[bandit] | ||
exclude: ./node_modules/*,./.git/* | ||
exclude: ./node_modules/*,./.git/*,./esp_debug_adapter/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,4 +139,6 @@ statistics = True | |
exclude = | ||
.git, | ||
__pycache__ | ||
node_modules | ||
node_modules | ||
./node_modules | ||
esp_debug_adapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,5 @@ dist/ | |
node_modules/ | ||
templates/ | ||
testFiles/ | ||
media/ | ||
media/ | ||
esp_debug_adapter/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Use our ESP-IDF Debug Adapter | ||
|
||
``` | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "espidf", | ||
"name": "Launch", | ||
"request": "launch", | ||
"env": { | ||
"PYTHONPATH": "${command:espIdf.getExtensionPath}/esp_debug_adapter/debug_adapter" | ||
}, | ||
} | ||
] | ||
} | ||
``` | ||
|
||
Configuration settings of the ESP-IDF Debug Adapter for launch.json are: | ||
|
||
- `debugPort`: Port for ESP-IDF Debug Adapter. Default: 43474. | ||
- `logLevel`: Specify log level for Debug Adapter. Default: 2. | ||
- `mode`: Can be either `auto`, to start the debug adapter server within the extension or `manual`, to connect to existing debug adapter session. | ||
- `env`: Environment variables to apply to the ESP-IDF Debug Adapter. | ||
|
||
# Use Microsoft C/C++ extension to debug | ||
|
||
If you prefer using Microsoft C/C++ Extension to debug, the user community have found this launch.json configuration to be working. | ||
|
||
``` | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "GDB", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "xtensa-esp32-elf-gdb", | ||
"program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf", | ||
"windows": { | ||
"program": "${workspaceFolder}\\build\\${command:espIdf.getProjectName}.elf" | ||
}, | ||
"cwd": "${workspaceFolder}", | ||
"environment": [{ name: "PATH", value: "${config:idf.customExtraPaths}" }], | ||
"setupCommands": [ | ||
{ "text": "target remote :3333" }, | ||
{ "text": "mon reset halt" }, | ||
{ "text": "thb app_main" }, | ||
{ "text": "flushregs" } | ||
], | ||
"externalConsole": false, | ||
"logging": { | ||
"engineLogging": true | ||
} | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*.pyc | ||
/.idea | ||
/.venv | ||
/.vscode | ||
/venv | ||
/temp* | ||
/*.ps1 | ||
/.environment/ | ||
/main.exe | ||
/tests/temp_sc_tests/gdbinit | ||
TEST*.xml | ||
*.log |
Oops, something went wrong.