Skip to content

Improved Printf Debugging #13

@plasmatic1

Description

@plasmatic1

Add some keyboard shortcut i.e. Ctrl+K that takes a line and turns it into valid "printf" debugging code.

It takes in "commands" and converts them into working code.

Here is how the commands should work:

  • d, <var/expr>, [alias]: does something akin to cout << #x << (x) << ' '; except #x is replaced by the alias if it's specified
  • l, <label>: does something akin to cout << '[' << x << "] "; except x is <label>.
  • l2, <label>: Same thing as l except normal brackets are used instead of square ones

More to come!

To separate commands, use semicolons. Her e is an example:

l, addition; d, a; d, b; d, a+b, sum; 

with a=2 and b=5 would print: [addition] a=2, b=5, sum=7

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions