Skip to main content

C & CPP debugger adapter for Python

Project description

esp_debug_adapter

esp_debug_adapter works as connecting part between IDE and an Debug server. From the IDE side it is needed to follow DAP, from Debug server this adapter is compatible with GDB/MI protocol.

Table of Content:

See also:

Usage

For advanced arguments description follow to specific section: Start Modes and Arguments

Basic description is bellow:

Usage: debug_adapter_main.py [OPTIONS]

Options:
  -a, --app_flash_off INTEGER     Program start address offset
                                  (ESP32_APP_FLASH_OFF)  [default: 65536]
  -b, --board-type TEXT           Type of the board to run tests on (you could
                                  use OOCD_TEST_BOARD envvar by default)
  -d, --debug INTEGER             Debug level (0-4), 5 - for a full OOCD log
                                  [default: 2]
  -dn, --device-name TEXT         The name of used hardware to debug
                                  (currently Esp32 or Esp32_S2). It defines
                                  --toolchain-prefix
  -p, --port INTEGER              Listen on given port for VS Code connections
                                  [default: 43474]
  -pm, --postmortem               Run the adapter without target in 'read-
                                  only' mode
  --developer-mode [none|connection-check|x86-test]
                                  Modes for development purposes  [default:
                                  none]
  -l, --log-file TEXT             Path to log file.
  -lm, --log-mult-files           Log to separated files
  -t, --toolchain-prefix TEXT     (If not set, controlled by --device-name!)
                                  Toolchain prefix. If set, rewrites the value
                                  specified by --device-name.
  -e, --elfpath TEXT              A path to elf files for debugging. You can
                                  use several elf files e.g. `-e file1.elf -e
                                  file2.elf`
  -c, --core-file TEXT            Use a file as a core dump to examine.
  -x, --cmdfile TEXT              Path to a command file containing commands
                                  to automatic execute during a program
                                  startup
  -tsf, --tmo-scale-factor        Scale factor for gdb timeout [default:1]
  -o, --oocd TEXT                 Path to OpenOCD binary file, (used
                                  OPENOCD_BIN envvar or (if not set) 'openocd'
                                  by default)  [default: openocd]
  -oa, --oocd-args TEXT           (If not set, drives by --device-name!)
                                  Specifies custom OpenOCD args. If set,
                                  rewrites the value specified by --device-
                                  name.
  -om, --oocd-mode [run_and_connect|connect_to_instance|without_oocd]
                                  Cooperation with OpenOCD  [default:
                                  connect_to_instance]
  -ip, --oocd-ip TEXT             Ip for remote OpenOCD connection  [default:
                                  localhost]
  -s, --oocd-scripts TEXT         Path to OpenOCD TCL scripts (use
                                  OPENOCD_SCRIPTS envvar by default)
  --help                          Show this message and exit.

References

Credits and licensing

This software is based on a tutorial by Fabio Zadrozny.

All original code in this repository is Copyright 2020 Espressif Systems (Shanghai) Co. Ltd.

The project is released under Eclipse Public License 2.0.

In case an individual source file is also available under a different license, this is indicated in the file itself.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cx-debug-adapter-1.0.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

cx_debug_adapter-1.0.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file cx-debug-adapter-1.0.0.tar.gz.

File metadata

  • Download URL: cx-debug-adapter-1.0.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for cx-debug-adapter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0816313a5e74563b608ec2162614f1d092dbccb332f66e4c1e69a2176b155f3a
MD5 7302e7a5b2ddcde116ed3d3c8e5279c3
BLAKE2b-256 df3de2492e4cc23145f3a2b94fd829fac881906bfbe2d5d711abb51387b512d8

See more details on using hashes here.

File details

Details for the file cx_debug_adapter-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cx_debug_adapter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59221e7ae6969a534c70237ad4996aa28e0874b793bea1b7df94c9dbfd9a7c1d
MD5 6018516c4b932a3740e7f39236c963f5
BLAKE2b-256 66db073eeccd48d9ffd5067f228d9682c9230db0242d41265ebf99332f3cd66b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page