Skip to content

Enabling debugging in the Arduino IDE 2#1275

Open
felias-fogg wants to merge 1 commit into
SpenceKonde:masterfrom
felias-fogg:debug
Open

Enabling debugging in the Arduino IDE 2#1275
felias-fogg wants to merge 1 commit into
SpenceKonde:masterfrom
felias-fogg:debug

Conversation

@felias-fogg

Copy link
Copy Markdown

The necessary changes to enable debugging are relatively minimal:

If you want to play around with it, check out the quickstart start guide for CNANO boards.

The most intrusive change is to disable the -mrelax option, since this optimization plays havoc with debugging information: MCUdude/MegaCoreX#216
If you really want to support this option, it may be better to enable it via platform.local.txt or by implementing my pragma-mechanism.

I would have loved to disable LTO, because this removes debug information about class structures, and it removes information about variables being global. However, I will rather wait for a new GCC version to be used, which fixes these bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant